Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247539
b: refs/heads/master
c: 57f16b5
h: refs/heads/master
i:
  247537: 8d74e02
  247535: 57ed5a2
v: v3
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed May 5, 2011
1 parent 55de836 commit 2d39ee1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 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: 85e09b40405b44b049500702beb6856646b4be46
refs/heads/master: 57f16b5da03784d1660133fbec7281ea5735da69
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/mwifiex/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,14 +1044,15 @@ mwifiex_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
goto done;
}

priv->assoc_request = 1;
priv->assoc_request = -EINPROGRESS;

wiphy_dbg(wiphy, "info: Trying to associate to %s and bssid %pM\n",
(char *) sme->ssid, sme->bssid);

ret = mwifiex_cfg80211_assoc(priv, sme->ssid_len, sme->ssid, sme->bssid,
priv->bss_mode, sme->channel, sme, 0);

priv->assoc_request = 1;
done:
priv->assoc_result = ret;
queue_work(priv->workqueue, &priv->cfg_workqueue);
Expand Down Expand Up @@ -1080,14 +1081,16 @@ mwifiex_cfg80211_join_ibss(struct wiphy *wiphy, struct net_device *dev,
goto done;
}

priv->ibss_join_request = 1;
priv->ibss_join_request = -EINPROGRESS;

wiphy_dbg(wiphy, "info: trying to join to %s and bssid %pM\n",
(char *) params->ssid, params->bssid);

ret = mwifiex_cfg80211_assoc(priv, params->ssid_len, params->ssid,
params->bssid, priv->bss_mode,
params->channel, NULL, params->privacy);

priv->ibss_join_request = 1;
done:
priv->ibss_join_result = ret;
queue_work(priv->workqueue, &priv->cfg_workqueue);
Expand Down Expand Up @@ -1380,7 +1383,7 @@ mwifiex_cfg80211_results(struct work_struct *work)
kfree(scan_req);
}

if (priv->assoc_request) {
if (priv->assoc_request == 1) {
if (!priv->assoc_result) {
cfg80211_connect_result(priv->netdev, priv->cfg_bssid,
NULL, 0, NULL, 0,
Expand All @@ -1399,7 +1402,7 @@ mwifiex_cfg80211_results(struct work_struct *work)
priv->assoc_result = 0;
}

if (priv->ibss_join_request) {
if (priv->ibss_join_request == 1) {
if (!priv->ibss_join_result) {
cfg80211_ibss_joined(priv->netdev, priv->cfg_bssid,
GFP_KERNEL);
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/mwifiex/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ struct mwifiex_private {
u8 report_scan_result;
struct cfg80211_scan_request *scan_request;
int scan_result_status;
bool assoc_request;
int assoc_request;
u16 assoc_result;
bool ibss_join_request;
int ibss_join_request;
u16 ibss_join_result;
bool disconnect;
u8 cfg_bssid[6];
Expand Down

0 comments on commit 2d39ee1

Please sign in to comment.