Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351735
b: refs/heads/master
c: 11cff96
h: refs/heads/master
i:
  351733: 96366a5
  351731: 06d482e
  351727: ebcbe78
v: v3
  • Loading branch information
Johannes Berg committed Jan 3, 2013
1 parent dbdced1 commit f497ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 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: fdc9d7b2863ce67f51ed64f89e5b20f3077be569
refs/heads/master: 11cff96c0660e1e361d60ab90514ffbbfbaf7c03
15 changes: 1 addition & 14 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1878,9 +1878,6 @@ static void restore_regulatory_settings(bool reset_user)
restore_custom_reg_settings(&rdev->wiphy);
}

mutex_unlock(&reg_mutex);
mutex_unlock(&cfg80211_mutex);

regulatory_hint_core(world_alpha2);

/*
Expand All @@ -1891,18 +1888,8 @@ static void restore_regulatory_settings(bool reset_user)
if (is_an_alpha2(alpha2))
regulatory_hint_user(user_alpha2, NL80211_USER_REG_HINT_USER);

if (list_empty(&tmp_reg_req_list))
return;

mutex_lock(&cfg80211_mutex);
mutex_lock(&reg_mutex);

spin_lock(&reg_requests_lock);
list_for_each_entry_safe(reg_request, tmp, &tmp_reg_req_list, list) {
REG_DBG_PRINT("Adding request for country %c%c back into the queue\n",
reg_request->alpha2[0], reg_request->alpha2[1]);
list_move_tail(&reg_request->list, &reg_requests_list);
}
list_splice_tail_init(&tmp_reg_req_list, &reg_requests_list);
spin_unlock(&reg_requests_lock);

mutex_unlock(&reg_mutex);
Expand Down

0 comments on commit f497ab7

Please sign in to comment.