]> git.ipfire.org Git - thirdparty/hostap.git/commit
hostapd: Fix BSS parameters change count on link removal
authorJohannes Berg <johannes.berg@intel.com>
Wed, 24 Jul 2024 17:37:07 +0000 (19:37 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 1 Aug 2024 14:30:12 +0000 (17:30 +0300)
commit1e541605157a0b6183eaa0e1e38e0f71ba6f69b2
tree5eab95d75bc6a9fe6344da1aad73a3a52d0be521
parent21c3a7494c755ae2780294c3caaad2d0c8980337
hostapd: Fix BSS parameters change count on link removal

The value currently is simply incremented, but it must not
reach 255 and rather wrap around from 254 to 0, since in
the Reduced Neighbor Report 255 means unknown. Fix that.

Fixes: d95838b7932b ("AP: Add support for testing ML link removal")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
src/ap/hostapd.c