Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/linux-patches:3.15 commit in: /
Date: Sat, 05 Jul 2014 23:58:56
Message-Id: 1404604723.98204cb1f4b6dd3f6330a71927a6135bcc66d1b4.mpagano@gentoo
1 commit: 98204cb1f4b6dd3f6330a71927a6135bcc66d1b4
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 5 23:58:43 2014 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 5 23:58:43 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=98204cb1
7
8 Patch to fix frequency reported on G-PHY with /new/ firmware. See bug #516392
9
10 ---
11 0000_README | 4 ++++
12 2405_G-PHY-freq-fix.patch | 19 +++++++++++++++++++
13 2 files changed, 23 insertions(+)
14
15 diff --git a/0000_README b/0000_README
16 index 5171464..236fcc9 100644
17 --- a/0000_README
18 +++ b/0000_README
19 @@ -63,6 +63,10 @@ Patch: 2400_kcopy-patch-for-infiniband-driver.patch
20 From: Alexey Shvetsov <alexxy@g.o>
21 Desc: Zero copy for infiniband psm userspace driver
22
23 +Patch: 2405_G-PHY-freq-fix.patch
24 +From: https://bugs.gentoo.org/show_bug.cgi?id=516392
25 +Desc: b43: fix frequency reported on G-PHY with /new/ firmware
26 +
27 Patch: 2700_ThinkPad-30-brightness-control-fix.patch
28 From: Seth Forshee <seth.forshee@×××××××××.com>
29 Desc: ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads
30
31 diff --git a/2405_G-PHY-freq-fix.patch b/2405_G-PHY-freq-fix.patch
32 new file mode 100644
33 index 0000000..2777ced
34 --- /dev/null
35 +++ b/2405_G-PHY-freq-fix.patch
36 @@ -0,0 +1,19 @@
37 +--- a/drivers/net/wireless/b43/xmit.c 2014-07-05 18:58:29.992935369 -0400
38 ++++ b/drivers/net/wireless/b43/xmit.c 2014-07-05 19:01:16.654933780 -0400
39 +@@ -811,9 +811,13 @@ void b43_rx(struct b43_wldev *dev, struc
40 + break;
41 + case B43_PHYTYPE_G:
42 + status.band = IEEE80211_BAND_2GHZ;
43 +- /* chanid is the radio channel cookie value as used
44 +- * to tune the radio. */
45 +- status.freq = chanid + 2400;
46 ++ /* Somewhere between 478.104 and 508.1084 firmware for G-PHY
47 ++ * has been modified to be compatible with N-PHY and others.
48 ++ */
49 ++ if (dev->fw.rev >= 508)
50 ++ status.freq = ieee80211_channel_to_frequency(chanid, status.band);
51 ++ else
52 ++ status.freq = chanid + 2400;
53 + break;
54 + case B43_PHYTYPE_N:
55 + case B43_PHYTYPE_LP: