Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136174
b: refs/heads/master
c: cc0b6fe
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Mar 28, 2009
1 parent a4c9e25 commit 892310b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e097dc65673ed421bbc2e49f52c125aa43a8ee6
refs/heads/master: cc0b6fe88e99096868bdbacbf486c97299533b5a
8 changes: 7 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1601,6 +1601,10 @@ static bool reg_same_country_ie_hint(struct wiphy *wiphy,

assert_cfg80211_lock();

if (unlikely(last_request->initiator !=
NL80211_REGDOM_SET_BY_COUNTRY_IE))
return false;

request_wiphy = wiphy_idx_to_wiphy(last_request->wiphy_idx);

if (!request_wiphy)
Expand Down Expand Up @@ -1663,7 +1667,9 @@ void regulatory_hint_11d(struct wiphy *wiphy,
* we optimize an early check to exit out early if we don't have to
* do anything
*/
if (likely(wiphy_idx_valid(last_request->wiphy_idx))) {
if (likely(last_request->initiator ==
NL80211_REGDOM_SET_BY_COUNTRY_IE &&
wiphy_idx_valid(last_request->wiphy_idx))) {
struct cfg80211_registered_device *drv_last_ie;

drv_last_ie =
Expand Down

0 comments on commit 892310b

Please sign in to comment.