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)
commit81ddbb5c1188dfaa98c67832a751117fcacda75d
treefe15f28483843f5daa2f14b1ee3ed29802e2d21a
parenta75e2ad772b6c26efd702f04be1f9a6414d24f22
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