Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369647
b: refs/heads/master
c: 8bc77a4
h: refs/heads/master
i:
  369645: dae74e5
  369643: f5a4785
  369639: 5c0a1a0
  369631: fab699e
v: v3
  • Loading branch information
Bing Zhao authored and John W. Linville committed Apr 22, 2013
1 parent 490d8ca commit ada978b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 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: 4587eea5b787b8373c72791a92084010f79443d0
refs/heads/master: 8bc77a4d2c8ca3c07d74465a3738bf60a4e5de41
17 changes: 6 additions & 11 deletions trunk/drivers/net/wireless/mwifiex/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -1666,25 +1666,20 @@ mwifiex_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
struct cfg80211_connect_params *sme)
{
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
int ret = 0;

if (priv->bss_mode == NL80211_IFTYPE_ADHOC) {
wiphy_err(wiphy, "received infra assoc request "
"when station is in ibss mode\n");
goto done;
}
int ret;

if (priv->bss_mode == NL80211_IFTYPE_AP) {
wiphy_err(wiphy, "skip association request for AP interface\n");
goto done;
if (priv->bss_mode != NL80211_IFTYPE_STATION) {
wiphy_err(wiphy,
"%s: reject infra assoc request in non-STA mode\n",
dev->name);
return -EINVAL;
}

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);
done:
if (!ret) {
cfg80211_connect_result(priv->netdev, priv->cfg_bssid, NULL, 0,
NULL, 0, WLAN_STATUS_SUCCESS,
Expand Down

0 comments on commit ada978b

Please sign in to comment.