Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150423
b: refs/heads/master
c: c26c2e5
h: refs/heads/master
i:
  150421: fdb90e7
  150419: 774e6ca
  150415: 32c6836
v: v3
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed May 20, 2009
1 parent b440885 commit 984e484
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 175427ce40bd5a3f973a76c46502875f0eed877c
refs/heads/master: c26c2e576dc05d90e8eadc0c6ca273ed7aa12535
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,8 +1430,6 @@ static int ath_init(u16 devid, struct ath_softc *sc)
for (i = 0; i < sc->keymax; i++)
ath9k_hw_keyreset(ah, (u16) i);

error = ath_regd_init(&sc->sc_ah->regulatory, sc->hw->wiphy,
ath9k_reg_notifier);
if (error)
goto bad;

Expand Down Expand Up @@ -1644,14 +1642,19 @@ int ath_attach(u16 devid, struct ath_softc *sc)
if (error != 0)
return error;

reg = &sc->sc_ah->regulatory;

/* get mac address from hardware and set in mac80211 */

SET_IEEE80211_PERM_ADDR(hw, sc->sc_ah->macaddr);

ath_set_hw_capab(sc, hw);

error = ath_regd_init(&sc->sc_ah->regulatory, sc->hw->wiphy,
ath9k_reg_notifier);
if (error)
return error;

reg = &sc->sc_ah->regulatory;

if (sc->sc_ah->caps.hw_caps & ATH9K_HW_CAP_HT) {
setup_ht_cap(sc, &sc->sbands[IEEE80211_BAND_2GHZ].ht_cap);
if (test_bit(ATH9K_MODE_11A, sc->sc_ah->caps.wireless_modes))
Expand Down

0 comments on commit 984e484

Please sign in to comment.