]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl819su: update probe_rq_parse()
authorFlorian Schilhabel <florian.c.schilhabel@googlemail.com>
Thu, 15 Jul 2010 17:03:15 +0000 (19:03 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Jul 2010 19:00:20 +0000 (12:00 -0700)
Signed-off-by: Florian Schilhabel <florian.c.schilhabel@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192su/ieee80211/ieee80211_softmac.c

index 7cae63a7c012465cd35bb3eb9e4032d3b1759476..64016a7a213203cfa46ae2b4e1e9ca61b0edd004 100644 (file)
@@ -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  ))
                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);
 
        skbend = (u8*)skb->data + skb->len;
@@ -1623,7 +1633,6 @@ static short probe_rq_parse(struct ieee80211_device *ieee, struct sk_buff *skb,
                tag++; /* point to the next tag */
        }
 
-       //IEEE80211DMESG("Card MAC address is "MACSTR, MAC2STR(src));
        if (ssidlen == 0) return 1;
 
        if (!ssid) return 1; /* ssid not found in tagged param */