Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328254
b: refs/heads/master
c: 22c22d2
h: refs/heads/master
v: v3
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed Sep 24, 2012
1 parent 51ac725 commit 3999bd6
Show file tree
Hide file tree
Showing 2 changed files with 14 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: ee928381ec9ec089c4ac35e7aeaaeb5bc4ccd938
refs/heads/master: 22c22d2710ab828ea36487abd1d7f94f79a86a68
13 changes: 13 additions & 0 deletions trunk/drivers/net/wireless/mwifiex/sta_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#include "11n.h"
#include "cfg80211.h"

static int disconnect_on_suspend = 1;
module_param(disconnect_on_suspend, int, 0644);

/*
* Copies the multicast address list from device to driver.
*
Expand Down Expand Up @@ -448,6 +451,16 @@ EXPORT_SYMBOL_GPL(mwifiex_cancel_hs);
int mwifiex_enable_hs(struct mwifiex_adapter *adapter)
{
struct mwifiex_ds_hs_cfg hscfg;
struct mwifiex_private *priv;
int i;

if (disconnect_on_suspend) {
for (i = 0; i < adapter->priv_num; i++) {
priv = adapter->priv[i];
if (priv)
mwifiex_deauthenticate(priv, NULL);
}
}

if (adapter->hs_activated) {
dev_dbg(adapter->dev, "cmd: HS Already actived\n");
Expand Down

0 comments on commit 3999bd6

Please sign in to comment.