Re: [PATCH v5 10/16] wpa_supplicant: AP Extended Key ID support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 2019-08-25 um 18:35 schrieb Alexander Wetzel:
This also fixes an off by one error for key tracking and deletion:

Even within IEEE 802.11w the highest keyid is 5 and not 6.


No, that's plain wrong and the promised fix is a bug.
The loop processing the variable max reads:
        for (i = 0; i < max; i++) {

Therefore max=6 is correct when we support iGTKs and max=4 is ok when not.

So this part of the patch has now been reverted in my local git:
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -699,7 +699,7 @@ void wpa_clear_keys(struct wpa_supplicant *wpa_s, const u8 *addr)
  	int i, max;
#ifdef CONFIG_IEEE80211W
-	max = 6;
+	max = 5;
  #else /* CONFIG_IEEE80211W */
  	max = 4;
  #endif /* CONFIG_IEEE80211W */

I've also made some other minor changes but these were all cosmetic... If there is no immediate interest I would again wait a few days (maybe a week) prior sending the updated patch series out again for more issues to address.

Alexander

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux