Revised [PATCH] UBUNTU: SAUCE: hardy netbook-lpia, Expose EEPROM antenna information for rt73usb driver

Jim Lieb jim.lieb at canonical.com
Tue Apr 7 16:43:24 UTC 2009


On Tuesday 07 April 2009 07:57:03 Stefan Bader wrote:
> Ok, so we know this is our own and as it only changes info output it really
> should be safe. ACK
Same here.  ACK
>
> Steve Conklin wrote:
> > Turns out that this was written by Steve Magoun, not in stable. I applied
> > the suggested change in variable declaration and added proper
> > attribution.
> >
> > From d92c8d34ef5e3e575ca7cf9b6910453d00153a14 Mon Sep 17 00:00:00 2001
> > From: Steve Conklin <sconklin at canonical.com>
> > Date: Mon, 6 Apr 2009 15:20:59 -0500
> > Subject: [PATCH] UBUNTU: SAUCE: hardy netbook-lpia - Expose EEPROM
> > antenna configuration data Bug: 352439
> >
> > OriginalAuthor: Steve Magoun <smagoun at canonical.com>
> > Signed-off-by: Steve Conklin <sconklin at canonical.com>
> > ---
> >  drivers/net/wireless/rt2x00/rt73usb.c |    6 ++++++
> >  1 files changed, 6 insertions(+), 0 deletions(-)
> >
> > diff --git a/drivers/net/wireless/rt2x00/rt73usb.c
> > b/drivers/net/wireless/rt2x00/rt73usb.c index b9d5310..aa73dbf 100644
> > --- a/drivers/net/wireless/rt2x00/rt73usb.c
> > +++ b/drivers/net/wireless/rt2x00/rt73usb.c
> > @@ -1515,6 +1515,7 @@ static int rt73usb_init_eeprom(struct rt2x00_dev
> > *rt2x00dev) u32 reg;
> >  	u16 value;
> >  	u16 eeprom;
> > +	int num_antennas;
> >
> >  	/*
> >  	 * Read EEPROM word for configuration.
> > @@ -1549,6 +1550,11 @@ static int rt73usb_init_eeprom(struct rt2x00_dev
> > *rt2x00dev) rt2x00dev->default_ant.rx =
> >  	    rt2x00_get_field16(eeprom, EEPROM_ANTENNA_RX_DEFAULT);
> >
> > +	num_antennas = rt2x00_get_field16(eeprom, EEPROM_ANTENNA_NUM);
> > +	INFO(rt2x00dev, "Number of antennas: %d\n", num_antennas);
> > +	INFO(rt2x00dev, "Tx default antenna control: 0x%x\n",
> > rt2x00dev->default_ant.tx); +	INFO(rt2x00dev, "Rx default antenna
> > control: 0x%x\n", rt2x00dev->default_ant.rx); +
> >  	/*
> >  	 * Read the Frame type.
> >  	 */
>
> --
>
> When all other means of communication fail, try words!

-- 
Jim Lieb
Ubuntu Kernel Team
Canonical Ltd.




More information about the kernel-team mailing list