diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-29 16:41:35 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-04-29 16:41:35 +0000 |
commit | ae33c64a37c8a8d6dc1e38678e967f2e457bc33a (patch) | |
tree | 2423f4a1006fb83c06960f2170d2679ea0c608fb /contrib/package/iwinfo/src/iwinfo_madwifi.c | |
parent | 8879c55bb39b31a03de5d798a436d73b30a011d6 (diff) |
libiwinfo:
- don't assume madwifi and nl80211 backends if no backend given
- only print intersection of group and unicast ciphers in crypto description
- fix crypto detection on madwifi in client mode
- bump pkg revision
Diffstat (limited to 'contrib/package/iwinfo/src/iwinfo_madwifi.c')
-rw-r--r-- | contrib/package/iwinfo/src/iwinfo_madwifi.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/package/iwinfo/src/iwinfo_madwifi.c b/contrib/package/iwinfo/src/iwinfo_madwifi.c index 59c42dbc9..54a77cd4d 100644 --- a/contrib/package/iwinfo/src/iwinfo_madwifi.c +++ b/contrib/package/iwinfo/src/iwinfo_madwifi.c @@ -560,9 +560,11 @@ int madwifi_get_encryption(const char *ifname, char *buf) if( madwifi_wrq(&wrq, ifname, SIOCGIWENCODE, keybuf, sizeof(keybuf)) < 0 ) return -1; +#if 0 /* Have any encryption? */ if( (wrq.u.data.flags & IW_ENCODE_DISABLED) || (wrq.u.data.length == 0) ) return 0; +#endif /* Save key len */ key_len = wrq.u.data.length; @@ -628,7 +630,7 @@ int madwifi_get_encryption(const char *ifname, char *buf) if( c->wpa_version && ciphers & (1 << IEEE80211_CIPHER_CKIP) ) c->pair_ciphers |= IWINFO_CIPHER_CKIP; - if( ciphers & (1 << IEEE80211_CIPHER_WEP) ) + if( !c->pair_ciphers && ciphers & (1 << IEEE80211_CIPHER_WEP) ) { switch(key_len) { case 13: |