|
@@ -1292,7 +1292,13 @@ static int ath9k_reg_notifier(struct wiphy *wiphy,
|
|
return ath_reg_notifier_apply(wiphy, request, reg);
|
|
return ath_reg_notifier_apply(wiphy, request, reg);
|
|
}
|
|
}
|
|
|
|
|
|
-static int ath_init(u16 devid, struct ath_softc *sc)
|
|
|
|
|
|
+/*
|
|
|
|
+ * Initialize and fill ath_softc, ath_sofct is the
|
|
|
|
+ * "Software Carrier" struct. Historically it has existed
|
|
|
|
+ * to allow the separation between hardware specific
|
|
|
|
+ * variables (now in ath_hw) and driver specific variables.
|
|
|
|
+ */
|
|
|
|
+static int ath_init_softc(u16 devid, struct ath_softc *sc)
|
|
{
|
|
{
|
|
struct ath_hw *ah = NULL;
|
|
struct ath_hw *ah = NULL;
|
|
int r = 0, i;
|
|
int r = 0, i;
|
|
@@ -1558,7 +1564,8 @@ void ath_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
|
|
&sc->sbands[IEEE80211_BAND_5GHZ];
|
|
&sc->sbands[IEEE80211_BAND_5GHZ];
|
|
}
|
|
}
|
|
|
|
|
|
-int ath_attach(u16 devid, struct ath_softc *sc)
|
|
|
|
|
|
+/* Device driver core initialization */
|
|
|
|
+int ath_init_device(u16 devid, struct ath_softc *sc)
|
|
{
|
|
{
|
|
struct ieee80211_hw *hw = sc->hw;
|
|
struct ieee80211_hw *hw = sc->hw;
|
|
int error = 0, i;
|
|
int error = 0, i;
|
|
@@ -1566,7 +1573,7 @@ int ath_attach(u16 devid, struct ath_softc *sc)
|
|
|
|
|
|
DPRINTF(sc, ATH_DBG_CONFIG, "Attach ATH hw\n");
|
|
DPRINTF(sc, ATH_DBG_CONFIG, "Attach ATH hw\n");
|
|
|
|
|
|
- error = ath_init(devid, sc);
|
|
|
|
|
|
+ error = ath_init_softc(devid, sc);
|
|
if (error != 0)
|
|
if (error != 0)
|
|
return error;
|
|
return error;
|
|
|
|
|