Return-path: Received: from cora.hrz.tu-chemnitz.de ([134.109.228.40]:39954 "EHLO cora.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754584Ab3FGRFu (ORCPT ); Fri, 7 Jun 2013 13:05:50 -0400 From: Simon Wunderlich To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Mathias Kretschmer , Simon Wunderlich Subject: [PATCH 0/5] add master channel switch announcement support Date: Fri, 7 Jun 2013 19:05:40 +0200 Message-Id: <1370624745-2267-1-git-send-email-siwu@hrz.tu-chemnitz.de> (sfid-20130607_190554_621921_F3A86BA9) Sender: linux-wireless-owner@vger.kernel.org List-ID: This is the follow up from the RFC posted a month ago. This patchset adds generic channel switch support for AP. This is required for DFS operation (e.g. Wi-Fi Alliance requires this for 802.11h certification). This will also be required for IBSS-DFS later. The rough design is: * userspace asks kernel to switch a channel using the new NL80211_CMD_CHANNEL_SWITCH command. It supplies IE information for the time while staying on the old channel and announcing the switch, and IE information for after the switch to the new channel. * IE information contains the beacon and optionally probe responses, which should include (E)CSA IEs for the CSA case. Furthermore an offset is provided (for beacon and probe response) to point to the counter field within the channel switch IEs. * The driver gets the new beacons passed and must set them, and decrement the counter field. When it reaches 0, the channel is changed and userspace notified. Discussion points: * Assembling all these IE information is a little bit tedious but doable (I've patched hostapd). * Other future users like IBSS/MESH will not get the beacon/probe response IEs, as they generate these beacons themselves. Therefore they need the COUNT attribute, which is kind of duplicate right now. * Userspace must generate/handle all IEs, which lifts the previous limitations of the RFC (e.g. no change of band allowed, no operation mode change allowed). * it currently works for me [TM] on my ath9k based machine As always, any comments are appreciated. Cheers, Simon Simon Wunderlich (5): nl80211: use attributes to parse beacons nl80211/cfg80211: add channel switch command mac80211: add functions to duplicate a cfg80211_beacon mac80211: add channel switch command and beacon callbacks ath9k: enable CSA functionality in ath9k drivers/net/wireless/ath/ath9k/main.c | 6 ++ include/net/cfg80211.h | 26 +++++ include/net/mac80211.h | 21 ++++ include/uapi/linux/nl80211.h | 29 ++++++ net/mac80211/cfg.c | 182 ++++++++++++++++++++++++++++++++- net/mac80211/driver-ops.h | 11 ++ net/mac80211/ieee80211_i.h | 11 ++ net/mac80211/iface.c | 2 + net/mac80211/trace.h | 20 ++++ net/mac80211/tx.c | 45 ++++++++ net/wireless/nl80211.c | 171 +++++++++++++++++++++++++------ 11 files changed, 493 insertions(+), 31 deletions(-) -- 1.7.10.4