diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-18 02:00:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2010-12-18 02:00:10 +0000 |
commit | 80d7bfbdd065d238fb0d1dcb1dc7f5e684b228eb (patch) | |
tree | 3fa369953145fcccc4f54b64c700a43e630096a2 /package/mac80211/patches/530-ath9k_chainmask_read_fix.patch | |
parent | 82e2bf1f1646853c9887fce1bf0dc23ca512f4cd (diff) | |
download | upstream-80d7bfbdd065d238fb0d1dcb1dc7f5e684b228eb.tar.gz upstream-80d7bfbdd065d238fb0d1dcb1dc7f5e684b228eb.tar.bz2 upstream-80d7bfbdd065d238fb0d1dcb1dc7f5e684b228eb.zip |
mac80211: update to wireless-testing 2010-12-16
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24655 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211/patches/530-ath9k_chainmask_read_fix.patch')
-rw-r--r-- | package/mac80211/patches/530-ath9k_chainmask_read_fix.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/mac80211/patches/530-ath9k_chainmask_read_fix.patch b/package/mac80211/patches/530-ath9k_chainmask_read_fix.patch new file mode 100644 index 0000000000..a0eebf5970 --- /dev/null +++ b/package/mac80211/patches/530-ath9k_chainmask_read_fix.patch @@ -0,0 +1,28 @@ +--- a/drivers/net/wireless/ath/ath9k/debug.c ++++ b/drivers/net/wireless/ath/ath9k/debug.c +@@ -81,11 +81,10 @@ static ssize_t read_file_tx_chainmask(st + size_t count, loff_t *ppos) + { + struct ath_softc *sc = file->private_data; +- struct ath_common *common = ath9k_hw_common(sc->sc_ah); + char buf[32]; + unsigned int len; + +- len = sprintf(buf, "0x%08x\n", common->tx_chainmask); ++ len = sprintf(buf, "0x%08x\n", sc->sc_ah->caps.tx_chainmask); + return simple_read_from_buffer(user_buf, count, ppos, buf, len); + } + +@@ -124,11 +123,10 @@ static ssize_t read_file_rx_chainmask(st + size_t count, loff_t *ppos) + { + struct ath_softc *sc = file->private_data; +- struct ath_common *common = ath9k_hw_common(sc->sc_ah); + char buf[32]; + unsigned int len; + +- len = sprintf(buf, "0x%08x\n", common->rx_chainmask); ++ len = sprintf(buf, "0x%08x\n", sc->sc_ah->caps.rx_chainmask); + return simple_read_from_buffer(user_buf, count, ppos, buf, len); + } + |