X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/0dad098602a29f9afd03e91e506932ef1f8d6f69..4cd49acd61e7810eca89b87971c568417cb701e7:/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch diff --git a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch index c5ca0e2b5..ae65b60e1 100644 --- a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch +++ b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch @@ -90,19 +90,19 @@ { struct ath_softc *sc = hw->priv; struct ath_hw *ah = sc->sc_ah; -@@ -1616,9 +1616,10 @@ static int ath9k_config(struct ieee80211 +@@ -1616,9 +1616,11 @@ static int ath9k_config(struct ieee80211 if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { struct ieee80211_channel *curchan = hw->conf.channel; -- struct ath9k_channel old_chan; -+ struct ath9k_channel old_chan, *hchan; ++ struct ath9k_channel *hchan; int pos = curchan->hw_value; int old_pos = -1; -+ u32 oldflags; unsigned long flags; ++ u32 oldflags; if (ah->curchan) -@@ -1671,7 +1672,23 @@ static int ath9k_config(struct ieee80211 + old_pos = ah->curchan - &ah->channels[0]; +@@ -1667,7 +1669,23 @@ static int ath9k_config(struct ieee80211 memset(&sc->survey[pos], 0, sizeof(struct survey_info)); }