This is the third iteration of the channel switch support for IBSS mode patchset (thanks Johannes for comments). CSA for IBSS will be required for IBSS-DFS support later. The patchset builds on top of the previously submitted AP DFS patchset. Changes: * patch "mac80211: move ibss presp generation in own function" has been applied and was therefore removed from this series * move ieee80211_parse_ch_switch_ie() to mlme.c * document used sta_flags * moved ibss_disconnect in separate patch The rough design is: * Userspace may request to change channel using the already introduced NL80211_CMD_CHANNEL_SWITCH command. Unlike AP mode, it does not contain IEs or offset for CSA elements, because this is to be generated by the kernel. * Also other stations may request a channel change by sending (E)CSA within beacons or action frames. This is parsed and further handled as if it would have come from userspace. * When performing a channel switch, an action frame is sent, because beaconing is distributed among IBSS peers and might be lost early. Furthermore, channel switch announcement IEs are added to the beacon/probe response. * When a channel switch could was not understood, it disconnects from the IBSS and tries to re-connect. Discussion points: * When disconnecting from the IBSS because a channel switch announcement was bogus or not understood, we might reconnect to the same BSS again - on the old channel, because the other stas are still there, and stay there. Although it is "accepted behaviour" in IEEE 802.11 that not all station could make it, we should consider ignoring beacons/presp if they include CSAs when scanning for networks to prevent this problem. As always, any comments are appreciated. Cheers, Simon Simon Wunderlich (6): cfg80211: export cfg80211_chandef_dfs_required mac80211: split off channel switch parsing function mac80211: split off ibss disconnect mac80211: add support for CSA in IBSS mode mac80211: send a CSA action frame when changing channel nl80211: enable IBSS support for channel switch announcements include/net/cfg80211.h | 9 + net/mac80211/cfg.c | 87 +++++-- net/mac80211/ibss.c | 538 +++++++++++++++++++++++++++++++++++++++----- net/mac80211/ieee80211_i.h | 29 +++ net/mac80211/iface.c | 4 + net/mac80211/mlme.c | 171 +------------- net/mac80211/rx.c | 36 ++- net/mac80211/spectmgmt.c | 162 +++++++++++++ net/mac80211/tx.c | 37 ++- net/wireless/chan.c | 1 + net/wireless/core.h | 9 - net/wireless/nl80211.c | 49 ++-- 12 files changed, 851 insertions(+), 281 deletions(-) -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html