提交 48b2e4ce 编写于 作者: J Johannes Berg 提交者: John W. Linville

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

Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 78e4f36e
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册