diff --git a/[refs] b/[refs] index 91bf5be21142..ae270706cff6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fb1fc7add5d205c1db2fa323af1367c3cd4dced2 +refs/heads/master: fff32c04f6074de0719cc46d8f488aaf746f151a diff --git a/trunk/net/wireless/reg.c b/trunk/net/wireless/reg.c index 7ecb9033ad42..5456534bdf8c 100644 --- a/trunk/net/wireless/reg.c +++ b/trunk/net/wireless/reg.c @@ -1157,6 +1157,16 @@ static int ignore_request(struct wiphy *wiphy, enum reg_set_by set_by, return 0; return -EALREADY; } + + /* + * This would happen if you unplug and plug your card + * back in or if you add a new device for which the previously + * loaded card also agrees on the regulatory domain. + */ + if (last_request->initiator == REGDOM_SET_BY_DRIVER && + alpha2_equal(cfg80211_regdomain->alpha2, alpha2)) + return -EALREADY; + return REG_INTERSECT; case REGDOM_SET_BY_USER: if (last_request->initiator == REGDOM_SET_BY_COUNTRY_IE)