]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: Fix frame duration oops
authorLuis R. Rodriguez <mcgrof@gmail.com>
Fri, 4 Jan 2008 07:21:05 +0000 (02:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:09:40 +0000 (15:09 -0800)
commit8b12587a762ded244fa316c16f3dfc364f6f4611
tree8e5fc0ab1bb563db7d727b58849f59eedb8cef19
parentc0fcb93fac085bdef04c41da5eeca91643b6193a
ath5k: Fix frame duration oops

This patch fixes an oops which was introduced as a regression by
commit fd640775bd16e1df50c867cc547af0, on the patch titled,
"mac80211: dont use interface indices in drivers".

ieee80211_generic_frame_duration() now relies on sdata->flags which
itself gets set upon bringing the interface up. We check for the
virtual interface now before setting the rate duration registers.

After the mode changes are introduced onto mac80211 we should revisit
these changes.

This patch was tested on the following cards:

1) BG card:

Atheros AR5213A chip found (MAC: 0x59, PHY: 0x43)
RF2112A 2GHz radio found (0x46)

2) ABG card:

Atheros AR5213A chip found (MAC: 0x59,PHY: 0x43)
RF5112A multiband radio found (0x36)

Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath5k/hw.c