Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122280
b: refs/heads/master
c: db93e7b
h: refs/heads/master
v: v3
  • Loading branch information
Senthil Balasubramanian authored and John W. Linville committed Nov 25, 2008
1 parent eeecd48 commit dd5b6ea
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 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: 306efdd109f086b19d849f1ec0f9104c9fdb3444
refs/heads/master: db93e7b5bf9dea9175d5b213f9557758c56abbfc
29 changes: 14 additions & 15 deletions trunk/drivers/net/wireless/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,14 +912,14 @@ static int ath_attach(u16 devid, struct ath_softc *sc)
hw->wiphy->bands[IEEE80211_BAND_5GHZ] =
&sc->sbands[IEEE80211_BAND_5GHZ];

error = ieee80211_register_hw(hw);
if (error != 0) {
ath_rate_control_unregister();
goto bad;
}
/* initialize tx/rx engine */
error = ath_tx_init(sc, ATH_TXBUF);
if (error != 0)
goto detach;

/* Initialize LED control */
ath_init_leds(sc);
error = ath_rx_init(sc, ATH_RXBUF);
if (error != 0)
goto detach;

#if defined(CONFIG_RFKILL) || defined(CONFIG_RFKILL_MODULE)
/* Initialze h/w Rfkill */
Expand All @@ -931,15 +931,14 @@ static int ath_attach(u16 devid, struct ath_softc *sc)
goto detach;
#endif

/* initialize tx/rx engine */

error = ath_tx_init(sc, ATH_TXBUF);
if (error != 0)
goto detach;
error = ieee80211_register_hw(hw);
if (error != 0) {
ath_rate_control_unregister();
goto bad;
}

error = ath_rx_init(sc, ATH_RXBUF);
if (error != 0)
goto detach;
/* Initialize LED control */
ath_init_leds(sc);

return 0;
detach:
Expand Down

0 comments on commit dd5b6ea

Please sign in to comment.