diff options
-rw-r--r-- | net/wireless/reg.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 7ecb9033ad42..5456534bdf8c 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1157,6 +1157,16 @@ static int ignore_request(struct wiphy *wiphy, enum reg_set_by set_by, | |||
1157 | return 0; | 1157 | return 0; |
1158 | return -EALREADY; | 1158 | return -EALREADY; |
1159 | } | 1159 | } |
1160 | |||
1161 | /* | ||
1162 | * This would happen if you unplug and plug your card | ||
1163 | * back in or if you add a new device for which the previously | ||
1164 | * loaded card also agrees on the regulatory domain. | ||
1165 | */ | ||
1166 | if (last_request->initiator == REGDOM_SET_BY_DRIVER && | ||
1167 | alpha2_equal(cfg80211_regdomain->alpha2, alpha2)) | ||
1168 | return -EALREADY; | ||
1169 | |||
1160 | return REG_INTERSECT; | 1170 | return REG_INTERSECT; |
1161 | case REGDOM_SET_BY_USER: | 1171 | case REGDOM_SET_BY_USER: |
1162 | if (last_request->initiator == REGDOM_SET_BY_COUNTRY_IE) | 1172 | if (last_request->initiator == REGDOM_SET_BY_COUNTRY_IE) |