X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/035f06d698fda6b5864d9665c4f657215dbf1e3e..603bb2bb6eb39ac30cf4a71f3727bc15b4ee45a1:/target/linux/brcm47xx/patches-3.2/190-ssb-sprom-fix-some-sizes-signedness.patch 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 ac73f3d4b..de251f451 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 -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 ---- - 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 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; -