Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 121623
b: refs/heads/master
c: f3b407f
h: refs/heads/master
i:
  121621: 5b0a2ac
  121619: c13b11b
  121615: 809bae1
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 31, 2008
1 parent 6de0990 commit a4d669a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 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: cf03268e6ed6cfacaa5e32db41ea832c4d10438b
refs/heads/master: f3b407fba52e1b86ca286ee7c218a4fb00bd29e0
6 changes: 2 additions & 4 deletions trunk/net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,10 @@ int wiphy_register(struct wiphy *wiphy)
/* check and set up bitrates */
ieee80211_set_bitrate_flags(wiphy);

mutex_lock(&cfg80211_drv_mutex);

/* set up regulatory info */
mutex_lock(&cfg80211_reg_mutex);
wiphy_update_regulatory(wiphy, REGDOM_SET_BY_CORE);
mutex_unlock(&cfg80211_reg_mutex);

mutex_lock(&cfg80211_drv_mutex);

res = device_add(&drv->wiphy.dev);
if (res)
Expand Down
3 changes: 0 additions & 3 deletions trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ struct regulatory_request {
};

static LIST_HEAD(regulatory_requests);
DEFINE_MUTEX(cfg80211_reg_mutex);

/* To trigger userspace events */
static struct platform_device *reg_pdev;
Expand All @@ -63,8 +62,6 @@ static u32 supported_bandwidths[] = {
MHZ_TO_KHZ(20),
};

static struct list_head regulatory_requests;

/* Central wireless core regulatory domains, we only need two,
* the current one and a world regulatory domain in case we have no
* information to give us an alpha2 */
Expand Down
1 change: 0 additions & 1 deletion trunk/net/wireless/reg.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef __NET_WIRELESS_REG_H
#define __NET_WIRELESS_REG_H

extern struct mutex cfg80211_reg_mutex;
bool is_world_regdom(const char *alpha2);
bool reg_is_valid_request(const char *alpha2);

Expand Down

0 comments on commit a4d669a

Please sign in to comment.