diff options
author | Arik Nemtsov <arik@wizery.com> | 2015-07-08 08:41:44 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-07-17 09:02:02 -0400 |
commit | 923b352f19d9ea971ae2536eab55f5fc9e95fedf (patch) | |
tree | cbad43b0c411a8d474c5a068f932d9ad8fb964f2 /include/net/cfg80211.h | |
parent | b3e7de873df77c1fa0bc2cfaf3eaff757b80e773 (diff) |
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>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index a741678f24a2..883fe1e7c5a1 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -4868,6 +4868,23 @@ bool cfg80211_reg_can_beacon(struct wiphy *wiphy, | |||
4868 | struct cfg80211_chan_def *chandef, | 4868 | struct cfg80211_chan_def *chandef, |
4869 | enum nl80211_iftype iftype); | 4869 | enum nl80211_iftype iftype); |
4870 | 4870 | ||
4871 | /** | ||
4872 | * cfg80211_reg_can_beacon_relax - check if beaconing is allowed with relaxation | ||
4873 | * @wiphy: the wiphy | ||
4874 | * @chandef: the channel definition | ||
4875 | * @iftype: interface type | ||
4876 | * | ||
4877 | * Return: %true if there is no secondary channel or the secondary channel(s) | ||
4878 | * can be used for beaconing (i.e. is not a radar channel etc.). This version | ||
4879 | * also checks if IR-relaxation conditions apply, to allow beaconing under | ||
4880 | * more permissive conditions. | ||
4881 | * | ||
4882 | * Requires the RTNL to be held. | ||
4883 | */ | ||
4884 | bool cfg80211_reg_can_beacon_relax(struct wiphy *wiphy, | ||
4885 | struct cfg80211_chan_def *chandef, | ||
4886 | enum nl80211_iftype iftype); | ||
4887 | |||
4871 | /* | 4888 | /* |
4872 | * cfg80211_ch_switch_notify - update wdev channel and notify userspace | 4889 | * cfg80211_ch_switch_notify - update wdev channel and notify userspace |
4873 | * @dev: the device which switched channels | 4890 | * @dev: the device which switched channels |