Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315586
b: refs/heads/master
c: 14cdf11
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and Johannes Berg committed Jul 17, 2012
1 parent fb9274b commit a939e74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: f8a1c774570ab50f1657083c990b968d5f7f22cb
refs/heads/master: 14cdf112019c1d4bc0f1bf9a9c832be641dbe25a
12 changes: 2 additions & 10 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1232,14 +1232,6 @@ static void wiphy_update_regulatory(struct wiphy *wiphy,
wiphy->reg_notifier(wiphy, last_request);
}

static void regulatory_update(struct wiphy *wiphy,
enum nl80211_reg_initiator setby)
{
mutex_lock(&reg_mutex);
wiphy_update_regulatory(wiphy, setby);
mutex_unlock(&reg_mutex);
}

static void update_all_wiphy_regulatory(enum nl80211_reg_initiator initiator)
{
struct cfg80211_registered_device *rdev;
Expand Down Expand Up @@ -2387,9 +2379,9 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
if (!reg_dev_ignore_cell_hint(wiphy))
reg_num_devs_support_basehint++;

mutex_unlock(&reg_mutex);
wiphy_update_regulatory(wiphy, NL80211_REGDOM_SET_BY_CORE);

regulatory_update(wiphy, NL80211_REGDOM_SET_BY_CORE);
mutex_unlock(&reg_mutex);
}

/* Caller must hold cfg80211_mutex */
Expand Down

0 comments on commit a939e74

Please sign in to comment.