Re: [PATCH 02/11] ssb: remove 5GHz antenna gain from sprom
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2012-02-19 19:17:46
Also in:
linux-mips
From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2012-02-19 19:17:46
Also in:
linux-mips
On 02/19/2012 08:14 PM, Larry Finger wrote:
On 02/19/2012 12:32 PM, Hauke Mehrtens wrote:quoted
There is no 2.4 GHz or 5GHz antenna gain stored in sprom. The sprom just stores the gain values for antenna 1 and 2 or 1 to 4 for more recent sprom versions. On old devices antenna 2 was used for 5 GHz wifi. Signed-off-by: Hauke Mehrtens<hauke@hauke-m.de> --- drivers/net/wireless/b43legacy/phy.c | 2 +- drivers/ssb/pci.c | 40 ++++++++++++---------------------- drivers/ssb/pcmcia.c | 12 +++------ drivers/ssb/sdio.c | 12 +++------ include/linux/ssb/ssb.h | 7 +----- 5 files changed, 24 insertions(+), 49 deletions(-)After this patch, I get the warning drivers/ssb/pci.c: In function ‘sprom_extract_r123’: drivers/ssb/pci.c:334:5: warning: unused variable ‘gain’ [-Wunused-variable] I am still testing, but all other patches compile OK.
Thanks for the info, I haven't see it. I will fix it in the next round. Hauke