dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] softmac: check if disassociation is for us before processing it

Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Johannes Berg 2006-01-10 19:12:19 +01:00 committed by John W. Linville
parent 78e4f36e05
commit 48b2e4ce69
1 changed files with 4 additions and 1 deletions

View File

@ -349,7 +349,10 @@ ieee80211softmac_handle_disassoc(struct net_device * dev,
{
struct ieee80211softmac_device *mac = ieee80211_priv(dev);
unsigned long flags;
/* FIXME: check that this frame is from the right AP!! */
if (memcmp(disassoc->header.addr2, mac->associnfo.bssid, ETH_ALEN))
return 0;
if (memcmp(disassoc->header.addr1, mac->dev->dev_addr, ETH_ALEN))
return 0;
dprintk(KERN_INFO PFX "got disassoc frame\n");
netif_carrier_off(dev);
spin_lock_irqsave(&mac->lock, flags);