mac80211: upgrade to latest compat-wireless, fix ad-hoc interface setup
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 405-compile_fix.patch
1 --- a/drivers/net/wireless/ath/ath9k/ahb.c
2 +++ b/drivers/net/wireless/ath/ath9k/ahb.c
3 @@ -29,15 +29,13 @@ static void ath_ahb_read_cachesize(struc
4
5 static void ath_ahb_cleanup(struct ath_common *common)
6 {
7 - struct ath_hw *ah = (struct ath_hw *) common->ah;
8 - struct ath_softc *sc = ah->ah_sc;
9 + struct ath_softc *sc = (struct ath_softc *) common->priv;
10 iounmap(sc->mem);
11 }
12
13 static bool ath_ahb_eeprom_read(struct ath_common *common, u32 off, u16 *data)
14 {
15 - struct ath_hw *ah = (struct ath_hw *) common->ah;
16 - struct ath_softc *sc = ah->ah_sc;
17 + struct ath_softc *sc = (struct ath_softc *) common->priv;
18 struct platform_device *pdev = to_platform_device(sc->dev);
19 struct ath9k_platform_data *pdata;
20