Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10242
b: refs/heads/master
c: 259bf1f
h: refs/heads/master
v: v3
  • Loading branch information
James Ketrenos authored and Jeff Garzik committed Sep 22, 2005
1 parent 7e3717b commit b2bbe6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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: 0ad0c3c64484b1458b51167bd3e614d8d9d070f8
refs/heads/master: 259bf1fd8a7cc0f6b47fd8a9ac5e2dfc33182a3d
2 changes: 1 addition & 1 deletion trunk/include/net/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ struct ieee80211_device;
#define SEC_UNICAST_GROUP (1<<6)
#define SEC_LEVEL (1<<7)
#define SEC_ENABLED (1<<8)
#define SEC_TGI_KEY_RESET (1<<9)
#define SEC_ENCRYPT (1<<9)

#define SEC_LEVEL_0 0 /* None */
#define SEC_LEVEL_1 1 /* WEP 40 and 104 bit */
Expand Down
7 changes: 3 additions & 4 deletions trunk/net/ieee80211/ieee80211_wx.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,15 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
sec.enabled = 0;
sec.encrypt = 0;
sec.level = SEC_LEVEL_0;
sec.flags |= SEC_ENABLED | SEC_LEVEL;
sec.flags |= SEC_ENABLED | SEC_LEVEL | SEC_ENCRYPT;
}

goto done;
}

sec.enabled = 1;
sec.encrypt = 1;
sec.flags |= SEC_ENABLED;
sec.flags |= SEC_ENABLED | SEC_ENCRYPT;

if (*crypt != NULL && (*crypt)->ops != NULL &&
strcmp((*crypt)->ops->name, "WEP") != 0) {
Expand Down Expand Up @@ -412,8 +412,6 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
sec.flags |= SEC_ACTIVE_KEY;
}
}

done:
ieee->open_wep = !(erq->flags & IW_ENCODE_RESTRICTED);
sec.auth_mode = ieee->open_wep ? WLAN_AUTH_OPEN : WLAN_AUTH_SHARED_KEY;
sec.flags |= SEC_AUTH_MODE;
Expand All @@ -425,6 +423,7 @@ int ieee80211_wx_set_encode(struct ieee80211_device *ieee,
sec.flags |= SEC_LEVEL;
sec.level = SEC_LEVEL_1; /* 40 and 104 bit WEP */

done:
if (ieee->set_security)
ieee->set_security(dev, &sec);

Expand Down

0 comments on commit b2bbe6c

Please sign in to comment.