]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211/cfg80211: enable DFS for IBSS mode
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Mon, 7 Oct 2013 16:41:05 +0000 (18:41 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 28 Oct 2013 14:05:21 +0000 (15:05 +0100)
commita61c049b7b9479001bf01c45ab5b5534472ea509
tree0dacc5508f7ab1e65f894d6f09c4b56e7a6da9fb
parent3f491d7f626b8b805e9887cd3d7e9346f8f3c127
nl80211/cfg80211: enable DFS for IBSS mode

To use DFS in IBSS mode, userspace is required to react to radar events.
It can inform nl80211 that it is capable of doing so by adding a
NL80211_ATTR_HANDLE_DFS attribute when joining the IBSS.

This attribute is supplied to let the kernelspace know that the
userspace application can and will handle radar events, e.g. by
intiating channel switches to a valid channel. DFS channels may
only be used if this attribute is supplied and the driver supports
it. Driver support will be checked even if a channel without DFS
will be initially joined, as a DFS channel may be chosen later.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de>
[fix attribute name in commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
include/uapi/linux/nl80211.h
net/wireless/chan.c
net/wireless/ibss.c
net/wireless/nl80211.c
net/wireless/util.c