Skip to contentSkip to conversation

mac80211: fix iwlist wlanX key behavior

PATCH Applied Hong Liu 2 participants 3 messages Mar 16, 2007 – Mar 27, 2007 mac80211

lore
Share & tools
lore

Hong Liu

author
#0 lore raw

PATCH 4/5 mac80211: fix iwlist wlanX key behavior

---

 net/mac80211/ieee80211_ioctl.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

85a09073975e027e2b613396c0bb1b31f72e8fc2

net/mac80211/ieee80211_ioctl.c +5 -0
index 46fd125..839c565 100644
@@ -1595,6 +1595,11 @@ static int ieee80211_ioctl_giwrange(stru
 	range->min_frag = 256;
 	range->max_frag = 2346;
 
+	range->encoding_size[0] = 5;
+	range->encoding_size[1] = 13;
+	range->num_encoding_sizes = 2;
+	range->max_encoding_tokens = NUM_DEFAULT_KEYS;
+
 	range->max_qual.qual = local->hw.max_signal;
 	range->max_qual.level = local->hw.max_rssi;
 	range->max_qual.noise = local->hw.max_noise;
Signature · 1 line
1.3.3
author
#2 lore raw

return correct key info in SIOCGIWRANGE, iwconfig will use this info to further query the key info by SIOCGIWENCODE.

---

 net/mac80211/ieee80211_ioctl.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

85a09073975e027e2b613396c0bb1b31f72e8fc2

(quoted diff) +0 -0

b/net/mac80211/ieee80211_ioctl.c
index 46fd125..839c565 100644

net/mac80211/ieee80211_ioctl.c +5 -0
@@ -1595,6 +1595,11 @@ static int ieee80211_ioctl_giwrange(stru
        range->min_frag = 256;
        range->max_frag = 2346;
 
+       range->encoding_size[0] = 5;
+       range->encoding_size[1] = 13;
+       range->num_encoding_sizes = 2;
+       range->max_encoding_tokens = NUM_DEFAULT_KEYS;
+
        range->max_qual.qual = local->hw.max_signal;
        range->max_qual.level = local->hw.max_rssi;
        range->max_qual.noise = local->hw.max_noise;

--
1.3.3

Quoted 9 lines · Jiri Benc
Quoted 1 line · Hong Liu

Please add a description.

Thanks,

Jiri