diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-02-21 00:04:30 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:57 -0500 |
commit | fe33eb390854886e1fd5d4835d833b80d145aafb (patch) | |
tree | 5349c48092c9528b5640d5981425e161e0731ed3 /drivers | |
parent | 0441d6ffc705de17d85923264a1b03b71ebfccb8 (diff) |
cfg80211: move all regulatory hints to workqueue
All regulatory hints (core, driver, userspace and 11d) are now processed in
a workqueue.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath9k/main.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_mac.c | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath9k/main.c b/drivers/net/wireless/ath9k/main.c index b47cbe9e7a5a..1e3824215ac9 100644 --- a/drivers/net/wireless/ath9k/main.c +++ b/drivers/net/wireless/ath9k/main.c | |||
@@ -1656,8 +1656,12 @@ int ath_attach(u16 devid, struct ath_softc *sc) | |||
1656 | 1656 | ||
1657 | error = ieee80211_register_hw(hw); | 1657 | error = ieee80211_register_hw(hw); |
1658 | 1658 | ||
1659 | if (!ath9k_is_world_regd(sc->sc_ah)) | 1659 | if (!ath9k_is_world_regd(sc->sc_ah)) { |
1660 | regulatory_hint(hw->wiphy, sc->sc_ah->regulatory.alpha2); | 1660 | error = regulatory_hint(hw->wiphy, |
1661 | sc->sc_ah->regulatory.alpha2); | ||
1662 | if (error) | ||
1663 | goto error_attach; | ||
1664 | } | ||
1661 | 1665 | ||
1662 | /* Initialize LED control */ | 1666 | /* Initialize LED control */ |
1663 | ath_init_leds(sc); | 1667 | ath_init_leds(sc); |
diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index 7579af27edbd..da9214e33a5f 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c | |||
@@ -170,10 +170,10 @@ int zd_mac_init_hw(struct ieee80211_hw *hw) | |||
170 | goto disable_int; | 170 | goto disable_int; |
171 | 171 | ||
172 | r = zd_reg2alpha2(mac->regdomain, alpha2); | 172 | r = zd_reg2alpha2(mac->regdomain, alpha2); |
173 | if (!r) | 173 | if (r) |
174 | regulatory_hint(hw->wiphy, alpha2); | 174 | goto disable_int; |
175 | 175 | ||
176 | r = 0; | 176 | r = regulatory_hint(hw->wiphy, alpha2); |
177 | disable_int: | 177 | disable_int: |
178 | zd_chip_disable_int(chip); | 178 | zd_chip_disable_int(chip); |
179 | out: | 179 | out: |