Commit c9b4d3ea authored by Florian Schilhabel's avatar Florian Schilhabel Committed by Greg Kroah-Hartman

staging: rtl819su: update probe_rq_parse()

Signed-off-by: default avatarFlorian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 26cc7154
...@@ -1606,6 +1606,16 @@ static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb, ...@@ -1606,6 +1606,16 @@ static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb,
if (skb->len < sizeof (struct ieee80211_hdr_3addr )) if (skb->len < sizeof (struct ieee80211_hdr_3addr ))
return -1; /* corrupted */ return -1; /* corrupted */
if((memcmp(header->addr3,ieee->current_network.bssid,ETH_ALEN) != 0)&&
(memcmp(header->addr3,"\xff\xff\xff\xff\xff\xff",ETH_ALEN) != 0)) {
return -1;
}
if(memcmp(header->addr3,ieee->current_network.bssid,ETH_ALEN) == 0) {
}
if(memcmp(header->addr3,"\xff\xff\xff\xff\xff\xff",ETH_ALEN) == 0) {
}
memcpy(src,header->addr2, ETH_ALEN); memcpy(src,header->addr2, ETH_ALEN);
skbend = (u8*)skb->data + skb->len; skbend = (u8*)skb->data + skb->len;
...@@ -1623,7 +1633,6 @@ static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb, ...@@ -1623,7 +1633,6 @@ static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb,
tag++; /* point to the next tag */ tag++; /* point to the next tag */
} }
//IEEE80211DMESG("Card MAC address is "MACSTR, MAC2STR(src));
if (ssidlen == 0) return 1; if (ssidlen == 0) return 1;
if (!ssid) return 1; /* ssid not found in tagged param */ if (!ssid) return 1; /* ssid not found in tagged param */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment