diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-09 00:00:29 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-11-09 00:00:29 -0500 |
commit | f24e09754bcb4d367664ea635c0c4ccde6ec4df5 (patch) | |
tree | f456c46186b627fe8d4daab44697db5e88e0504a /net | |
parent | d7eaee087a8cb850ed33ee39a3e2a0f02ecff44c (diff) | |
parent | d7e02edbc52bc689279154b117b90fe6635fc14b (diff) |
Merge rsync://bughost.org/repos/ieee80211-delta/
Diffstat (limited to 'net')
-rw-r--r-- | net/ieee80211/ieee80211_wx.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/net/ieee80211/ieee80211_wx.c b/net/ieee80211/ieee80211_wx.c index 1ce7af9bec35..181755f2aa8b 100644 --- a/net/ieee80211/ieee80211_wx.c +++ b/net/ieee80211/ieee80211_wx.c | |||
@@ -161,9 +161,11 @@ static inline char *ipw2100_translate_scan(struct ieee80211_device *ieee, | |||
161 | (ieee->perfect_rssi - ieee->worst_rssi) - | 161 | (ieee->perfect_rssi - ieee->worst_rssi) - |
162 | (ieee->perfect_rssi - network->stats.rssi) * | 162 | (ieee->perfect_rssi - network->stats.rssi) * |
163 | (15 * (ieee->perfect_rssi - ieee->worst_rssi) + | 163 | (15 * (ieee->perfect_rssi - ieee->worst_rssi) + |
164 | 62 * (ieee->perfect_rssi - network->stats.rssi))) / | 164 | 62 * (ieee->perfect_rssi - |
165 | ((ieee->perfect_rssi - ieee->worst_rssi) * | 165 | network->stats.rssi))) / |
166 | (ieee->perfect_rssi - ieee->worst_rssi)); | 166 | ((ieee->perfect_rssi - |
167 | ieee->worst_rssi) * (ieee->perfect_rssi - | ||
168 | ieee->worst_rssi)); | ||
167 | if (iwe.u.qual.qual > 100) | 169 | if (iwe.u.qual.qual > 100) |
168 | iwe.u.qual.qual = 100; | 170 | iwe.u.qual.qual = 100; |
169 | else if (iwe.u.qual.qual < 1) | 171 | else if (iwe.u.qual.qual < 1) |
@@ -520,7 +522,8 @@ int ieee80211_wx_set_encodeext(struct ieee80211_device *ieee, | |||
520 | crypt = &ieee->crypt[idx]; | 522 | crypt = &ieee->crypt[idx]; |
521 | group_key = 1; | 523 | group_key = 1; |
522 | } else { | 524 | } else { |
523 | if (idx != 0) | 525 | /* some Cisco APs use idx>0 for unicast in dynamic WEP */ |
526 | if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) | ||
524 | return -EINVAL; | 527 | return -EINVAL; |
525 | if (ieee->iw_mode == IW_MODE_INFRA) | 528 | if (ieee->iw_mode == IW_MODE_INFRA) |
526 | crypt = &ieee->crypt[idx]; | 529 | crypt = &ieee->crypt[idx]; |
@@ -688,7 +691,8 @@ int ieee80211_wx_get_encodeext(struct ieee80211_device *ieee, | |||
688 | } else | 691 | } else |
689 | idx = ieee->tx_keyidx; | 692 | idx = ieee->tx_keyidx; |
690 | 693 | ||
691 | if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) | 694 | if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY && |
695 | ext->alg != IW_ENCODE_ALG_WEP) | ||
692 | if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA) | 696 | if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA) |
693 | return -EINVAL; | 697 | return -EINVAL; |
694 | 698 | ||