X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F513-ath9k_channelbw_debugfs.patch;h=523b380cefa6def7ee5a019fb5a5dff6cf8b9b1d;hp=ae65b60e1be8a80143a9b467ed07131e9bf91257;hb=4406c24b6da6e276670abac12d89d1fef0a26ae2;hpb=9487b07dcd341078f4cac06d175fb20d82af049b diff --git a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch index ae65b60e1..523b380ce 100644 --- a/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch +++ b/package/mac80211/patches/513-ath9k_channelbw_debugfs.patch @@ -90,9 +90,9 @@ { struct ath_softc *sc = hw->priv; struct ath_hw *ah = sc->sc_ah; -@@ -1616,9 +1616,11 @@ static int ath9k_config(struct ieee80211 +@@ -1623,9 +1623,11 @@ static int ath9k_config(struct ieee80211 - if (changed & IEEE80211_CONF_CHANGE_CHANNEL) { + if ((changed & IEEE80211_CONF_CHANGE_CHANNEL) || reset_channel) { struct ieee80211_channel *curchan = hw->conf.channel; + struct ath9k_channel *hchan; int pos = curchan->hw_value; @@ -102,7 +102,7 @@ if (ah->curchan) old_pos = ah->curchan - &ah->channels[0]; -@@ -1667,7 +1669,23 @@ static int ath9k_config(struct ieee80211 +@@ -1674,7 +1676,23 @@ static int ath9k_config(struct ieee80211 memset(&sc->survey[pos], 0, sizeof(struct survey_info)); }