Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
tests: test_flows.py added vap settings
Browse files Browse the repository at this point in the history
vaps are not automatically configurted
added a code to configure them

Signed-off-by: Ran Regev <[email protected]>
  • Loading branch information
RanRegev committed Jun 21, 2020
1 parent 48851f5 commit ea92e3c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tests/test_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,21 @@ def test_ap_metrics_interval_response(self):
# tlv_length,0x000C,
# tlv_value,{0x05 0x01 {WTS_REPLACE_MAUT_RUID 0x00 0x00 0x00 0xC0})

debug("sending multi-ap policy config request (expecting report every 2 seconds):")
# set vaps
env.beerocks_cli_command('bml_clear_wifi_credentials {}'.format(env.agents[0].mac))
env.beerocks_cli_command('bml_set_wifi_credentials {} {} {} {} {}'
.format(env.agents[0].mac,
"Multi-AP-24G-3-cli", "maprocks1", "24g", "fronthaul"))
env.beerocks_cli_command('bml_update_wifi_credentials {}'.format(env.agents[0].mac))


# associate a station
sta = env.Station.create()

debug("Connect dummy STA (" + sta.mac + ") to wlan0")
env.agents[0].radios[0].vaps[0].associate(sta)

debug("sending multi-ap policy config request")
tlv_value = '0x05 0x01 0x{ruid} 0x00 0x00 0x00 0xC0'.format(ruid=env.agents[0].radios[0].mac.replace(':', ''))

debug(tlv_value)
Expand All @@ -1213,6 +1227,7 @@ def test_ap_metrics_interval_response(self):
time.sleep(10)
self.check_cmdu_type_single("ap metrics response", 0x800C, env.agents[0].mac, env.controller.mac)

env.agents[0].radios[0].vaps[0].disassociate(sta)



Expand Down

0 comments on commit ea92e3c

Please sign in to comment.