Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 249651
b: refs/heads/master
c: 65dd489
h: refs/heads/master
i:
  249649: 6327cdb
  249647: e4a5b86
v: v3
  • Loading branch information
Sukesh Srikakula authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 281d507 commit 036ece4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1f3b0085ed4f944f5b365a9070dbeb40fdfa1c0a
refs/heads/master: 65dd489204ffc7da8b8fd366a7ef7016db506bf2
27 changes: 8 additions & 19 deletions trunk/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3391,7 +3391,6 @@ s32 wl_cfg80211_attach(struct net_device *ndev, void *data)
goto cfg80211_attach_out;
}
wl_set_drvdata(wl_cfg80211_dev, ci);
set_bit(WL_STATUS_READY, &wl->status);

return err;

Expand Down Expand Up @@ -4021,48 +4020,38 @@ static s32 __wl_cfg80211_up(struct wl_priv *wl)
{
s32 err = 0;

set_bit(WL_STATUS_READY, &wl->status);

wl_debugfs_add_netdev_params(wl);

err = wl_config_dongle(wl, false);
if (unlikely(err))
return err;

wl_invoke_iscan(wl);
set_bit(WL_STATUS_READY, &wl->status);

return err;
}

static s32 __wl_cfg80211_down(struct wl_priv *wl)
{
s32 err = 0;

/* Check if cfg80211 interface is already down */
if (!test_bit(WL_STATUS_READY, &wl->status))
return err; /* it is even not ready */

set_bit(WL_STATUS_SCAN_ABORTING, &wl->status);
wl_term_iscan(wl);
if (wl->scan_request) {
cfg80211_scan_done(wl->scan_request, true); /* true
means abort */
/* wl_set_mpc(wl_to_ndev(wl), 1); */ /* BUG
* this operation cannot help
* but here because sdio
* is already down through
* rmmod process.
* Need to figure out how to
* address this issue
*/
cfg80211_scan_done(wl->scan_request, true);
/* May need to perform this to cover rmmod */
/* wl_set_mpc(wl_to_ndev(wl), 1); */
wl->scan_request = NULL;
}
clear_bit(WL_STATUS_READY, &wl->status);
clear_bit(WL_STATUS_SCANNING, &wl->status);
clear_bit(WL_STATUS_SCAN_ABORTING, &wl->status);
clear_bit(WL_STATUS_CONNECTING, &wl->status);
clear_bit(WL_STATUS_CONNECTED, &wl->status);

wl_debugfs_remove_netdev(wl);

return err;
return 0;
}

s32 wl_cfg80211_up(void)
Expand Down

0 comments on commit 036ece4

Please sign in to comment.