]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: enable regulatory hints for strict custom settings
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Thu, 3 Oct 2013 01:33:09 +0000 (18:33 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2013 13:30:55 +0000 (15:30 +0200)
commit07216dc669a4953521aae3123cc4730bc4d7dc4c
treeb50c174bcc2a164b934c2912048737a97520f6af
parent57ec83779809e1f91a3874ba9dc483d44abcefbb
cfg80211: enable regulatory hints for strict custom settings

If we have a wiphy with an ISO3166-alpha2 regulatory domain
programmed with the strict flag set we wait until the wiphy
gets its wiphy->regd programmed before allowing regulatory
domains hints other than country IE hints from processing
on the wiphy. The existing check however discards the
possibility of custom regulatory domains having also used
the strict flag and these will not have the wiphy->regd
set. Custom strict regulatory domains never set the wiphy->regd
though as such currently all regulatory hints other than
country IE hints are being ignored on these wiphys.

All custom strict regulatory domains set the wiphy with the
WIPHY_FLAG_CUSTOM_REGULATORY and use wiphy_apply_custom_regulatory().
Enhance the check for the strict ISO3166-alpha2 regulatory domain
case by exempting the WIPHY_FLAG_CUSTOM_REGULATORY case. This
will enable other regulatory hints to be processed now for
these strict custom regulatory domains.

Cc: smihir@qti.qualcomm.com
Cc: tushnimb@qca.qualcomm.com
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c