Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328255
b: refs/heads/master
c: de09364
h: refs/heads/master
i:
  328253: 51ac725
  328251: b6be10a
  328247: a2e7f99
  328239: 7c91b3b
  328223: 995ea37
  328191: ac852d2
v: v3
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed Sep 24, 2012
1 parent 3999bd6 commit 277433a
Show file tree
Hide file tree
Showing 3 changed files with 9 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: 22c22d2710ab828ea36487abd1d7f94f79a86a68
refs/heads/master: de09364eca2fc79f8585d4d476a60c6730664098
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/mwifiex/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,12 @@ mwifiex_cfg80211_scan(struct wiphy *wiphy,

wiphy_dbg(wiphy, "info: received scan request on %s\n", dev->name);

if (atomic_read(&priv->wmm.tx_pkts_queued) >=
MWIFIEX_MIN_TX_PENDING_TO_CANCEL_SCAN) {
dev_dbg(priv->adapter->dev, "scan rejected due to traffic\n");
return -EBUSY;
}

priv->scan_request = request;

priv->user_scan_cfg = kzalloc(sizeof(struct mwifiex_user_scan_cfg),
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/mwifiex/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ enum {
#define MWIFIEX_MAX_EMPTY_TX_Q_CNT 10
#define MWIFIEX_SCAN_DELAY_MSEC 20

#define MWIFIEX_MIN_TX_PENDING_TO_CANCEL_SCAN 2

#define RSN_GTK_OUI_OFFSET 2

#define MWIFIEX_OUI_NOT_PRESENT 0
Expand Down

0 comments on commit 277433a

Please sign in to comment.