Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278890
b: refs/heads/master
c: 43fcb43
h: refs/heads/master
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Dec 13, 2011
1 parent b1dea9f commit cc0a2d1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 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: aee5ed563d56c713d2a51d6f16e08b83fd9665d5
refs/heads/master: 43fcb430a4cfb7bd7c82600edeb3ca65f202a5f3
22 changes: 17 additions & 5 deletions trunk/drivers/net/wireless/ath/regd.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,11 +508,7 @@ static void ath_regd_sanitize(struct ath_regulatory *reg)
reg->current_rd = 0x64;
}

int
ath_regd_init(struct ath_regulatory *reg,
struct wiphy *wiphy,
int (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
static int __ath_regd_init(struct ath_regulatory *reg)
{
struct country_code_to_enum_rd *country = NULL;
u16 regdmn;
Expand Down Expand Up @@ -583,7 +579,23 @@ ath_regd_init(struct ath_regulatory *reg,
printk(KERN_DEBUG "ath: Regpair used: 0x%0x\n",
reg->regpair->regDmnEnum);

return 0;
}

int
ath_regd_init(struct ath_regulatory *reg,
struct wiphy *wiphy,
int (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request))
{
int r;

r = __ath_regd_init(reg);
if (r)
return r;

ath_regd_init_wiphy(reg, wiphy, reg_notifier);

return 0;
}
EXPORT_SYMBOL(ath_regd_init);
Expand Down

0 comments on commit cc0a2d1

Please sign in to comment.