Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144751
b: refs/heads/master
c: b1ed8dd
h: refs/heads/master
i:
  144749: 2eac7e5
  144747: a1b70e5
  144743: 368e437
  144735: 1b57bf3
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed May 4, 2009
1 parent 2d83940 commit 0b0778f
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ac46d48e00349c63650b3cc6f9460fcc183da6a6
refs/heads/master: b1ed8ddd21a2d7acf8efbb60a112ea5c9f914159
9 changes: 8 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,8 @@ static bool reg_is_world_roaming(struct wiphy *wiphy)
if (is_world_regdom(cfg80211_regdomain->alpha2) ||
(wiphy->regd && is_world_regdom(wiphy->regd->alpha2)))
return true;
if (last_request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE &&
if (last_request &&
last_request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE &&
wiphy->custom_regulatory)
return true;
return false;
Expand All @@ -1143,6 +1144,12 @@ static bool reg_is_world_roaming(struct wiphy *wiphy)
/* Reap the advantages of previously found beacons */
static void reg_process_beacons(struct wiphy *wiphy)
{
/*
* Means we are just firing up cfg80211, so no beacons would
* have been processed yet.
*/
if (!last_request)
return;
if (!reg_is_world_roaming(wiphy))
return;
wiphy_update_beacon_reg(wiphy);
Expand Down

0 comments on commit 0b0778f

Please sign in to comment.