* [PATCH] wl12xx: fix identification of beacon packets (debug)
@ 2011-02-09 10:25 Eliad Peller
2011-02-23 13:53 ` Luciano Coelho
0 siblings, 1 reply; 2+ messages in thread
From: Eliad Peller @ 2011-02-09 10:25 UTC (permalink / raw)
To: Luciano Coelho; +Cc: linux-wireless
for debugging purposes, wl12xx determines whether a rx packet
is a beacon packet.
however, it checks only the frame_control subtype without checking
the actual packet type, which leads to false identification in some
cases.
use ieee80211_is_beacon instead.
Signed-off-by: Eliad Peller <eliad@wizery.com>
---
drivers/net/wireless/wl12xx/rx.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/wl12xx/rx.c b/drivers/net/wireless/wl12xx/rx.c
index 029597b..1e3616a 100644
--- a/drivers/net/wireless/wl12xx/rx.c
+++ b/drivers/net/wireless/wl12xx/rx.c
@@ -92,7 +92,7 @@ static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length)
{
struct wl1271_rx_descriptor *desc;
struct sk_buff *skb;
- u16 *fc;
+ struct ieee80211_hdr *hdr;
u8 *buf;
u8 beacon = 0;
@@ -118,8 +118,8 @@ static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length)
/* now we pull the descriptor out of the buffer */
skb_pull(skb, sizeof(*desc));
- fc = (u16 *)skb->data;
- if ((*fc & IEEE80211_FCTL_STYPE) == IEEE80211_STYPE_BEACON)
+ hdr = (struct ieee80211_hdr *)skb->data;
+ if (ieee80211_is_beacon(hdr->frame_control))
beacon = 1;
wl1271_rx_status(wl, desc, IEEE80211_SKB_RXCB(skb), beacon);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] wl12xx: fix identification of beacon packets (debug)
2011-02-09 10:25 [PATCH] wl12xx: fix identification of beacon packets (debug) Eliad Peller
@ 2011-02-23 13:53 ` Luciano Coelho
0 siblings, 0 replies; 2+ messages in thread
From: Luciano Coelho @ 2011-02-23 13:53 UTC (permalink / raw)
To: Eliad Peller; +Cc: linux-wireless
On Wed, 2011-02-09 at 12:25 +0200, Eliad Peller wrote:
> for debugging purposes, wl12xx determines whether a rx packet
> is a beacon packet.
>
> however, it checks only the frame_control subtype without checking
> the actual packet type, which leads to false identification in some
> cases.
>
> use ieee80211_is_beacon instead.
>
> Signed-off-by: Eliad Peller <eliad@wizery.com>
> ---
Applied to wl12xx. Thanks!
--
Cheers,
Luca.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-23 13:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09 10:25 [PATCH] wl12xx: fix identification of beacon packets (debug) Eliad Peller
2011-02-23 13:53 ` Luciano Coelho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).