Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 159397
b: refs/heads/master
c: 554503f
h: refs/heads/master
i:
  159395: 02365a0
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Aug 4, 2009
1 parent fb7ea4d commit a079ec2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: 738f0f4301587ad09b58651390b122205086b484
refs/heads/master: 554503f8c9e11cbea92b7cf1e31f7e4d93ad4492
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/iwmc3200wifi/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ static int iwm_set_auth_type(struct iwm_priv *iwm,

static int iwm_set_wpa_version(struct iwm_priv *iwm, u32 wpa_version)
{
IWM_DBG_WEXT(iwm, DBG, "wpa_version: %d\n", wpa_version);

if (!wpa_version) {
iwm->umac_profile->sec.flags = UMAC_SEC_FLG_LEGACY_PROFILE;
return 0;
Expand All @@ -508,6 +510,9 @@ static int iwm_set_cipher(struct iwm_priv *iwm, u32 cipher, bool ucast)
return 0;
}

IWM_DBG_WEXT(iwm, DBG, "%ccast cipher is 0x%x\n", ucast ? 'u' : 'm',
cipher);

switch (cipher) {
case IW_AUTH_CIPHER_NONE:
*profile_cipher = UMAC_CIPHER_TYPE_NONE;
Expand Down Expand Up @@ -584,11 +589,11 @@ static int iwm_cfg80211_connect(struct wiphy *wiphy, struct net_device *dev,
iwm->umac_profile->bss_num = 0;
}

ret = iwm_set_auth_type(iwm, sme->auth_type);
ret = iwm_set_wpa_version(iwm, sme->crypto.wpa_versions);
if (ret < 0)
return ret;

ret = iwm_set_wpa_version(iwm, sme->crypto.wpa_versions);
ret = iwm_set_auth_type(iwm, sme->auth_type);
if (ret < 0)
return ret;

Expand Down

0 comments on commit a079ec2

Please sign in to comment.