Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351760
b: refs/heads/master
c: 0f500a5
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Johannes Berg committed Jan 3, 2013
1 parent 801a939 commit b06e338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 3195e489a878aaa3b735d4a1b7c5c79b3786efed
refs/heads/master: 0f500a5f6cadac888d5d3fce326452372d1a8343
11 changes: 5 additions & 6 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,6 +1044,9 @@ static void handle_reg_beacon(struct wiphy *wiphy, unsigned int chan_idx,

chan->beacon_found = true;

if (!reg_is_world_roaming(wiphy))
return;

if (wiphy->flags & WIPHY_FLAG_DISABLE_BEACON_HINTS)
return;

Expand Down Expand Up @@ -1110,8 +1113,6 @@ static void reg_process_beacons(struct wiphy *wiphy)
*/
if (!last_request)
return;
if (!reg_is_world_roaming(wiphy))
return;
wiphy_update_beacon_reg(wiphy);
}

Expand Down Expand Up @@ -1593,11 +1594,8 @@ static void reg_process_pending_beacon_hints(void)
struct cfg80211_registered_device *rdev;
struct reg_beacon *pending_beacon, *tmp;

/*
* No need to hold the reg_mutex here as we just touch wiphys
* and do not read or access regulatory variables.
*/
mutex_lock(&cfg80211_mutex);
mutex_lock(&reg_mutex);

/* This goes through the _pending_ beacon list */
spin_lock_bh(&reg_pending_beacons_lock);
Expand All @@ -1615,6 +1613,7 @@ static void reg_process_pending_beacon_hints(void)
}

spin_unlock_bh(&reg_pending_beacons_lock);
mutex_unlock(&reg_mutex);
mutex_unlock(&cfg80211_mutex);
}

Expand Down

0 comments on commit b06e338

Please sign in to comment.