cfg80211: make regulatory_hint() remove REGULATORY_CUSTOM_REG
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Sat, 14 Dec 2013 19:09:06 +0000 (20:09 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 13 Jan 2014 19:46:58 +0000 (14:46 -0500)
commit4f7b91404cd5da3657a82b00394f4f5dfbff13d6
treed111dd2ecec10bddc417f77b3f75203fd064acb0
parent8fc685803a8d7b42a5f69dcad7f7cef6f8b60edf
cfg80211: make regulatory_hint() remove REGULATORY_CUSTOM_REG

The REGULATORY_CUSTOM_REG can be used during early init with
the goal of overriding the wiphy's default regulatory settings
in case the alpha2 of the device is not known. In the case that
the alpha2 becomes known lets avoid having drivers having to
clear the REGULATORY_CUSTOM_REG flag by doing it for them
when regulatory_hint() is used.

Cc: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/regd.c
include/net/regulatory.h
net/wireless/reg.c