aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/801-fix-5ghz.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2014-07-30 21:15:42 +0000
committerHauke Mehrtens <hauke@openwrt.org>2014-07-30 21:15:42 +0000
commit51b0b1903939c6d7f4e56da0b037a731b906ca41 (patch)
treeef343ddcb35416a19434c58fe8c3fb566af89dbb /package/kernel/mac80211/patches/801-fix-5ghz.patch
parentb0270c8109056df626a0af0a8c7a45e62eafa2bd (diff)
downloadmaster-187ad058-51b0b1903939c6d7f4e56da0b037a731b906ca41.tar.gz
master-187ad058-51b0b1903939c6d7f4e56da0b037a731b906ca41.tar.bz2
master-187ad058-51b0b1903939c6d7f4e56da0b037a731b906ca41.zip
mac80211: b43: update b43 to version master-2014-07-29-1
This add 5GHz support for N-PHY to b43, thanks Rafał Miłecki. b43_wflush16 was put into an extra function because it is pretty big in asm. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41900 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/801-fix-5ghz.patch')
-rw-r--r--package/kernel/mac80211/patches/801-fix-5ghz.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/801-fix-5ghz.patch b/package/kernel/mac80211/patches/801-fix-5ghz.patch
new file mode 100644
index 0000000000..91d72a33af
--- /dev/null
+++ b/package/kernel/mac80211/patches/801-fix-5ghz.patch
@@ -0,0 +1,12 @@
+--- a/drivers/net/wireless/b43/phy_n.c
++++ b/drivers/net/wireless/b43/phy_n.c
+@@ -6217,6 +6217,9 @@ static void b43_nphy_channel_setup(struc
+ u16 tmp16;
+
+ if (new_channel->band == IEEE80211_BAND_5GHZ) {
++ /* Switch to 2 GHz for a moment to access B43_PHY_B_BBCFG */
++ b43_phy_mask(dev, B43_NPHY_BANDCTL, ~B43_NPHY_BANDCTL_5GHZ);
++
+ tmp16 = b43_read16(dev, B43_MMIO_PSM_PHY_HDR);
+ b43_write16(dev, B43_MMIO_PSM_PHY_HDR, tmp16 | 4);
+ /* Put BPHY in the reset */