diff options
Diffstat (limited to 'drivers/staging/wlan-ng/p80211netdev.c')
-rw-r--r-- | drivers/staging/wlan-ng/p80211netdev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c index b7b4a733b46..b0af292bc7e 100644 --- a/drivers/staging/wlan-ng/p80211netdev.c +++ b/drivers/staging/wlan-ng/p80211netdev.c | |||
@@ -301,7 +301,8 @@ static void p80211netdev_rx_bh(unsigned long arg) | |||
301 | if (memcmp | 301 | if (memcmp |
302 | (hdr->a1, wlandev->netdev->dev_addr, | 302 | (hdr->a1, wlandev->netdev->dev_addr, |
303 | ETH_ALEN) != 0) { | 303 | ETH_ALEN) != 0) { |
304 | /* but reject anything else that isn't multicast */ | 304 | /* but reject anything else that |
305 | isn't multicast */ | ||
305 | if (!(hdr->a1[0] & 0x01)) { | 306 | if (!(hdr->a1[0] & 0x01)) { |
306 | dev_kfree_skb(skb); | 307 | dev_kfree_skb(skb); |
307 | continue; | 308 | continue; |
@@ -770,7 +771,8 @@ int wlan_setup(wlandevice_t *wlandev, struct device *physdev) | |||
770 | } | 771 | } |
771 | 772 | ||
772 | /* Allocate and initialize the struct device */ | 773 | /* Allocate and initialize the struct device */ |
773 | netdev = alloc_netdev(sizeof(struct wireless_dev), "wlan%d", ether_setup); | 774 | netdev = alloc_netdev(sizeof(struct wireless_dev), "wlan%d", |
775 | ether_setup); | ||
774 | if (netdev == NULL) { | 776 | if (netdev == NULL) { |
775 | printk(KERN_ERR "Failed to alloc netdev.\n"); | 777 | printk(KERN_ERR "Failed to alloc netdev.\n"); |
776 | wlan_free_wiphy(wiphy); | 778 | wlan_free_wiphy(wiphy); |