cfg80211: allow users to help a driver's compliance
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 22 Jan 2009 23:05:54 +0000 (15:05 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Jan 2009 21:01:19 +0000 (16:01 -0500)
Let users be more compliant if so desired.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c

index 89e0d8b3cf1eec1d9798a070b5fe989ef37eb86e..af9132cea931103ebdca2799b7a765e8171906b4 100644 (file)
@@ -764,8 +764,9 @@ static int freq_reg_info_regd(struct wiphy *wiphy,
        regd = custom_regd ? custom_regd : cfg80211_regdomain;
 
        /* Follow the driver's regulatory domain, if present, unless a country
-        * IE has been processed */
+        * IE has been processed or a user wants to help complaince further */
        if (last_request->initiator != REGDOM_SET_BY_COUNTRY_IE &&
+           last_request->initiator != REGDOM_SET_BY_USER &&
            wiphy->regd)
                regd = wiphy->regd;