cfg80211: use RTNL locked reg_can_beacon for IR-relaxation
authorArik Nemtsov <arik@wizery.com>
Wed, 8 Jul 2015 12:41:44 +0000 (15:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:02:02 +0000 (15:02 +0200)
commit923b352f19d9ea971ae2536eab55f5fc9e95fedf
treecbad43b0c411a8d474c5a068f932d9ad8fb964f2
parentb3e7de873df77c1fa0bc2cfaf3eaff757b80e773
cfg80211: use RTNL locked reg_can_beacon for IR-relaxation

The RTNL is required to check for IR-relaxation conditions that allow
more channels to beacon. Export an RTNL locked version of reg_can_beacon
and use it where possible in AP/STA interface type flows, where
IR-relaxation may be applicable.

Fixes: 06f207fc5418 ("cfg80211: change GO_CONCURRENT to IR_CONCURRENT for STA")
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/tdls.c
net/wireless/chan.c
net/wireless/nl80211.c
net/wireless/reg.c
net/wireless/trace.h