MBO: Fix the allowed range of mbo_assoc_disallow values
This parameter was added with the commit message indicating the valid
reason code values to be 1-5, but with the implementation allowed only
1. There are five defined reason code values for the Association
Disallowed attribute, so extend the allowed range to cover all those
values.
Fixes: fb9a1c3e28
("hostapd: Add MBO IE to Beacon, Probe Response, Association Response")
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
This commit is contained in:
parent
c8e4283f90
commit
5530688b92
2 changed files with 3 additions and 3 deletions
|
@ -203,8 +203,8 @@ def test_mbo_assoc_disallow(dev, apdev, params):
|
|||
hapd2 = hostapd.add_ap(apdev[1], {"ssid": "MBO", "mbo": "1"})
|
||||
|
||||
logger.debug("Set mbo_assoc_disallow with invalid value")
|
||||
if "FAIL" not in hapd1.request("SET mbo_assoc_disallow 2"):
|
||||
raise Exception("Set mbo_assoc_disallow for AP1 succeeded unexpectedly with value 2")
|
||||
if "FAIL" not in hapd1.request("SET mbo_assoc_disallow 6"):
|
||||
raise Exception("Set mbo_assoc_disallow for AP1 succeeded unexpectedly with value 6")
|
||||
|
||||
logger.debug("Disallow associations to AP1 and allow association to AP2")
|
||||
if "OK" not in hapd1.request("SET mbo_assoc_disallow 1"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue