aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/p54/lmac.h
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@web.de>2009-07-16 14:03:47 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-24 15:05:21 -0400
commit46df10ae44b4488176bae16da0b31541eb0f8f48 (patch)
tree0f562347c429808ee8ba0ec151ea77189d5be744 /drivers/net/wireless/p54/lmac.h
parent12f49a79cd32d97a11f864a7b67660438ee3e6c8 (diff)
p54: fix beaconing related firmware crash
This patch fixes a firmware crash which can be provoked by changing operation mode. Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Christian Lamparter <chunkeey@web.de> Tested-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/p54/lmac.h')
-rw-r--r--drivers/net/wireless/p54/lmac.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/p54/lmac.h b/drivers/net/wireless/p54/lmac.h
index af35cfcd4fe3..04b63ec80fa4 100644
--- a/drivers/net/wireless/p54/lmac.h
+++ b/drivers/net/wireless/p54/lmac.h
@@ -98,6 +98,10 @@ struct p54_hdr {
98 (!((((struct p54_hdr *) ((struct sk_buff *) skb)->data)-> \ 98 (!((((struct p54_hdr *) ((struct sk_buff *) skb)->data)-> \
99 flags) & cpu_to_le16(P54_HDR_FLAG_CONTROL))) 99 flags) & cpu_to_le16(P54_HDR_FLAG_CONTROL)))
100 100
101#define GET_HW_QUEUE(skb) \
102 (((struct p54_tx_data *)((struct p54_hdr *) \
103 skb->data)->data)->hw_queue)
104
101/* 105/*
102 * shared interface ID definitions 106 * shared interface ID definitions
103 * The interface ID is a unique identification of a specific interface. 107 * The interface ID is a unique identification of a specific interface.