summaryrefslogtreecommitdiff
path: root/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-03-27 17:07:28 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-03-27 17:07:28 +0000
commita5abb0810078a982452e4a398cd7b2ccee31c28d (patch)
treeed5093337bd35fcd845ad498e3691307a277f30f /target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch
parented8902d6868d8be313179ed297a54d76f8672574 (diff)
downloadmtk-20170518-a5abb0810078a982452e4a398cd7b2ccee31c28d.zip
mtk-20170518-a5abb0810078a982452e4a398cd7b2ccee31c28d.tar.gz
mtk-20170518-a5abb0810078a982452e4a398cd7b2ccee31c28d.tar.bz2
brcm47xx: update sprom patches like they are in the mainline kernel
SVN-Revision: 31093
Diffstat (limited to 'target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch')
-rw-r--r--target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch b/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch
index ac73f3d..de251f4 100644
--- a/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch
+++ b/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch
@@ -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;
-