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>
This commit is contained in:

committed by
John W. Linville

parent
0441d6ffc7
commit
fe33eb3908
@@ -1656,8 +1656,12 @@ int ath_attach(u16 devid, struct ath_softc *sc)
|
||||
|
||||
error = ieee80211_register_hw(hw);
|
||||
|
||||
if (!ath9k_is_world_regd(sc->sc_ah))
|
||||
regulatory_hint(hw->wiphy, sc->sc_ah->regulatory.alpha2);
|
||||
if (!ath9k_is_world_regd(sc->sc_ah)) {
|
||||
error = regulatory_hint(hw->wiphy,
|
||||
sc->sc_ah->regulatory.alpha2);
|
||||
if (error)
|
||||
goto error_attach;
|
||||
}
|
||||
|
||||
/* Initialize LED control */
|
||||
ath_init_leds(sc);
|
||||
|
Reference in New Issue
Block a user