Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323169
b: refs/heads/master
c: a85d0d7
h: refs/heads/master
i:
  323167: abb72ff
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Sep 19, 2012
1 parent 1b3fb17 commit e307ed6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 78c04c0bf52360dc2f7185e99c8e9aa05d73ae5a
refs/heads/master: a85d0d7f3460b1a123b78e7f7e39bf72c37dfb78
12 changes: 9 additions & 3 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,9 @@ static void reg_regdb_search(struct work_struct *work)
struct reg_regdb_search_request *request;
const struct ieee80211_regdomain *curdom, *regdom;
int i, r;
bool set_reg = false;

mutex_lock(&cfg80211_mutex);

mutex_lock(&reg_regdb_search_mutex);
while (!list_empty(&reg_regdb_search_list)) {
Expand All @@ -365,16 +368,19 @@ static void reg_regdb_search(struct work_struct *work)
r = reg_copy_regd(&regdom, curdom);
if (r)
break;
mutex_lock(&cfg80211_mutex);
set_regdom(regdom);
mutex_unlock(&cfg80211_mutex);
set_reg = true;
break;
}
}

kfree(request);
}
mutex_unlock(&reg_regdb_search_mutex);

if (set_reg)
set_regdom(regdom);

mutex_unlock(&cfg80211_mutex);
}

static DECLARE_WORK(reg_regdb_work, reg_regdb_search);
Expand Down

0 comments on commit e307ed6

Please sign in to comment.