]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: don't always advertise remain-on-channel
authorJohannes Berg <johannes.berg@intel.com>
Mon, 26 Mar 2012 16:47:18 +0000 (18:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 Apr 2012 18:54:04 +0000 (14:54 -0400)
commit0a5c65bc08415af2a3a8b320f2077014642b2abe
treefe15f28483843f5daa2f14b1ee3ed29802e2d21a
parent0845477c6bf60137a990d2ae09ce32eec92fb1c2
mac80211: don't always advertise remain-on-channel

Not all devices are really capable of implementing
remain-on-channel, even if it is implemented in SW,
as they can't necessarily deal with channel changes
while associated.

Remove the WIPHY_FLAG_HAS_REMAIN_ON_CHANNEL and add
it only if either the driver has remain_on_channel
implemented in the driver/device.

Also add it to all drivers that advertise P2P right
now since those definitely have to have it working.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Luciano Coelho <coelho@ti.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_init.c
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/carl9170/fw.c
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/wl12xx/main.c
net/mac80211/main.c