Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102914
b: refs/heads/master
c: 5331b96
h: refs/heads/master
v: v3
  • Loading branch information
Jussi Kivilinna authored and John W. Linville committed Jun 14, 2008
1 parent 29b84b5 commit 68e52b6
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 6010ce07a66cfed043879de31275f5b90b33c4fc
refs/heads/master: 5331b96ce3a9f08d3a9e28386e193e8c78f8fdd1
5 changes: 5 additions & 0 deletions trunk/drivers/net/wireless/rndis_wlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -2215,6 +2215,8 @@ static void rndis_wext_worker(struct work_struct *work)
int ret, offset;

if (test_and_clear_bit(WORK_LINK_UP, &priv->work_pending)) {
netif_carrier_on(usbdev->net);

info = kzalloc(assoc_size, GFP_KERNEL);
if (!info)
goto get_bssid;
Expand Down Expand Up @@ -2253,6 +2255,8 @@ static void rndis_wext_worker(struct work_struct *work)
}

if (test_and_clear_bit(WORK_LINK_DOWN, &priv->work_pending)) {
netif_carrier_off(usbdev->net);

evt.data.flags = 0;
evt.data.length = 0;
memset(evt.ap_addr.sa_data, 0, ETH_ALEN);
Expand Down Expand Up @@ -2574,6 +2578,7 @@ static int rndis_wext_bind(struct usbnet *dev, struct usb_interface *intf)
/* turn radio on */
priv->radio_on = 1;
disassociate(dev, 1);
netif_carrier_off(dev->net);

/* because rndis_command() sleeps we need to use workqueue */
priv->workqueue = create_singlethread_workqueue("rndis_wlan");
Expand Down

0 comments on commit 68e52b6

Please sign in to comment.