Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31847
b: refs/heads/master
c: cd11acd
h: refs/heads/master
i:
  31845: 1693da0
  31843: bc2e637
  31839: ae65d87
v: v3
  • Loading branch information
Arjan van de Ven authored and Linus Torvalds committed Jul 3, 2006
1 parent a1126a1 commit 22db826
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a5b5bb9a053a973c23b867738c074acb3e80c0a0
refs/heads/master: cd11acdd8542cb0c0fa7cd86590b1ba79d7e263a
10 changes: 10 additions & 0 deletions trunk/drivers/net/wireless/hostap/hostap_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3095,6 +3095,14 @@ static void prism2_clear_set_tim_queue(local_info_t *local)
}


/*
* HostAP uses two layers of net devices, where the inner
* layer gets called all the time from the outer layer.
* This is a natural nesting, which needs a split lock type.
*/
static struct lock_class_key hostap_netdev_xmit_lock_key;


static struct net_device *
prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx,
struct device *sdev)
Expand Down Expand Up @@ -3259,6 +3267,8 @@ while (0)
SET_NETDEV_DEV(dev, sdev);
if (ret >= 0)
ret = register_netdevice(dev);

lockdep_set_class(&dev->_xmit_lock, &hostap_netdev_xmit_lock_key);
rtnl_unlock();
if (ret < 0) {
printk(KERN_WARNING "%s: register netdevice failed!\n",
Expand Down

0 comments on commit 22db826

Please sign in to comment.