]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: provide channel to start_ap function
authorJohannes Berg <johannes.berg@intel.com>
Wed, 16 May 2012 21:50:18 +0000 (23:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:32:16 +0000 (15:32 -0400)
commitac97025e5ab7d78c0cca08764b29d2710eee4266
tree086b60a5c6253cad2c78f5a976d0608f375f2b03
parent615f147a58fb4b385fba87dba0cd9f6c542edc33
cfg80211: provide channel to start_ap function

Instead of setting the channel first and then
starting the AP, let cfg80211 store the channel
and provide it as one of the AP settings.

This means that now you have to set the channel
before you can start an AP interface, but since
hostapd/wpa_supplicant always do that we're OK
with this change.

Alternatively, it's now possible to give the
channel as an attribute to the start-ap nl80211
command, overriding any preset channel.

Cc: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/core.h
drivers/net/wireless/ath/ath6kl/main.c
include/linux/nl80211.h
include/net/cfg80211.h
net/mac80211/cfg.c
net/wireless/nl80211.c