Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279432
b: refs/heads/master
c: 8848bef
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Jan 4, 2012
1 parent dccd008 commit b49f6c5
Show file tree
Hide file tree
Showing 2 changed files with 7 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: a98aa7ae14529144527b64a54a9ecd828fa805a6
refs/heads/master: 8848bef0382af53a7c9568bbc6757db97c53a0e3
12 changes: 6 additions & 6 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1480,18 +1480,18 @@ static int __regulatory_hint(struct wiphy *wiphy,
}

/* This processes *all* regulatory hints */
static void reg_process_hint(struct regulatory_request *reg_request)
static void reg_process_hint(struct regulatory_request *reg_request,
enum nl80211_reg_initiator reg_initiator)
{
int r = 0;
struct wiphy *wiphy = NULL;
enum nl80211_reg_initiator initiator = reg_request->initiator;

BUG_ON(!reg_request->alpha2);

if (wiphy_idx_valid(reg_request->wiphy_idx))
wiphy = wiphy_idx_to_wiphy(reg_request->wiphy_idx);

if (reg_request->initiator == NL80211_REGDOM_SET_BY_DRIVER &&
if (reg_initiator == NL80211_REGDOM_SET_BY_DRIVER &&
!wiphy) {
kfree(reg_request);
return;
Expand All @@ -1501,7 +1501,7 @@ static void reg_process_hint(struct regulatory_request *reg_request)
/* This is required so that the orig_* parameters are saved */
if (r == -EALREADY && wiphy &&
wiphy->flags & WIPHY_FLAG_STRICT_REGULATORY) {
wiphy_update_regulatory(wiphy, initiator);
wiphy_update_regulatory(wiphy, reg_initiator);
return;
}

Expand All @@ -1510,7 +1510,7 @@ static void reg_process_hint(struct regulatory_request *reg_request)
* source of bogus requests.
*/
if (r != -EALREADY &&
reg_request->initiator == NL80211_REGDOM_SET_BY_USER)
reg_initiator == NL80211_REGDOM_SET_BY_USER)
schedule_delayed_work(&reg_timeout, msecs_to_jiffies(3142));
}

Expand Down Expand Up @@ -1547,7 +1547,7 @@ static void reg_process_pending_hints(void)

spin_unlock(&reg_requests_lock);

reg_process_hint(reg_request);
reg_process_hint(reg_request, reg_request->initiator);

out:
mutex_unlock(&reg_mutex);
Expand Down

0 comments on commit b49f6c5

Please sign in to comment.