Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279425
b: refs/heads/master
c: cee0bec
h: refs/heads/master
i:
  279423: e443e60
v: v3
  • Loading branch information
Dmitry Shmidt authored and John W. Linville committed Jan 4, 2012
1 parent ab0cefe commit 9333a96
Show file tree
Hide file tree
Showing 2 changed files with 5 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: b423db5b356749e3e39faad607d387cd4c1a9d30
refs/heads/master: cee0bec58a922976a5f4d70081a3b2fd73e108e9
5 changes: 4 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1830,6 +1830,7 @@ static void restore_custom_reg_settings(struct wiphy *wiphy)
static void restore_regulatory_settings(bool reset_user)
{
char alpha2[2];
char world_alpha2[2];
struct reg_beacon *reg_beacon, *btmp;
struct regulatory_request *reg_request, *tmp;
LIST_HEAD(tmp_reg_req_list);
Expand Down Expand Up @@ -1881,6 +1882,8 @@ static void restore_regulatory_settings(bool reset_user)

/* First restore to the basic regulatory settings */
cfg80211_regdomain = cfg80211_world_regdom;
world_alpha2[0] = cfg80211_regdomain->alpha2[0];
world_alpha2[1] = cfg80211_regdomain->alpha2[1];

list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
if (rdev->wiphy.flags & WIPHY_FLAG_CUSTOM_REGULATORY)
Expand All @@ -1890,7 +1893,7 @@ static void restore_regulatory_settings(bool reset_user)
mutex_unlock(&reg_mutex);
mutex_unlock(&cfg80211_mutex);

regulatory_hint_core(cfg80211_regdomain->alpha2);
regulatory_hint_core(world_alpha2);

/*
* This restores the ieee80211_regdom module parameter
Expand Down

0 comments on commit 9333a96

Please sign in to comment.