brcm47xx: update sprom patches like they are in the mainline kernel
[openwrt/staging/wigyori.git] / target / linux / brcm47xx / patches-3.2 / 190-ssb-sprom-fix-some-sizes-signedness.patch
index ac73f3d4bdd5fcff6506516fa1fdb817671d227c..de251f451a5d042a69ee4846101453b8358489be 100644 (file)
@@ -1,26 +1,3 @@
-From 0af3fa9e4c9ea0ca0662f09183d71ea9a7eb572f Mon Sep 17 00:00:00 2001
-From: Hauke Mehrtens <hauke@hauke-m.de>
-Date: Sat, 18 Feb 2012 14:33:08 +0100
-Subject: [PATCH 190/202] ssb: sprom fix some sizes / signedness
-
-Some parts of the sprom struct are bigger than needed.
-The leddc and maxpwr values are just 8 bit long and not 16.
-rxpo2g and rxpo5g are signed
-antenna_gain is unsigned
-
-I got these information for the open source part of the Braodcom SDK
-covering sprom version 1 to 9. rxpo2g contained a negative number on my
-bcm5354 based device, this cased an error and Broadcom SDK says this is
-signed.
-
-I was unable to find any reverences to antenna_gain.ghz5 in the
-Broadcom SDK.
-
-Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
----
- include/linux/ssb/ssb.h |   20 ++++++++++----------
- 1 files changed, 10 insertions(+), 10 deletions(-)
-
 --- a/include/linux/ssb/ssb.h
 +++ b/include/linux/ssb/ssb.h
 @@ -33,8 +33,8 @@ struct ssb_sprom {
@@ -60,16 +37,3 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
        u8 rssisav2g;           /* 2GHz RSSI params */
        u8 rssismc2g;
        u8 rssismf2g;
-@@ -95,10 +95,10 @@ struct ssb_sprom {
-        * loss in the connectors is bigger than the gain. */
-       struct {
-               struct {
--                      s8 a0, a1, a2, a3;
-+                      u8 a0, a1, a2, a3;
-               } ghz24;        /* 2.4GHz band */
-               struct {
--                      s8 a0, a1, a2, a3;
-+                      u8 a0, a1, a2, a3;
-               } ghz5;         /* 5GHz band */
-       } antenna_gain;