tests: Extend the HE regulatory test to also exemplify SP AP
Extend he_6ghz_reg to also show how to configure SP AP with EIRP TX power limit. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
150ee0c068
commit
924f328df4
1 changed files with 14 additions and 0 deletions
|
@ -1702,6 +1702,20 @@ def test_he_6ghz_reg(dev, apdev):
|
||||||
|
|
||||||
# Allow few more Beacon frames
|
# Allow few more Beacon frames
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|
||||||
|
# Modify the regulatory power type to SP and provide the client EIRP
|
||||||
|
# limit
|
||||||
|
# EIRP = PSD + 10 * log(channel width)
|
||||||
|
# 16 = 3 + 10 * log(20)
|
||||||
|
hapd.set("vendor_elements", "")
|
||||||
|
hapd.set("he_6ghz_reg_pwr_type", "1")
|
||||||
|
hapd.set("reg_def_cli_eirp", "14")
|
||||||
|
|
||||||
|
if "OK" not in hapd.request("UPDATE_BEACON"):
|
||||||
|
raise Exception("UPDATE_BEACON failed")
|
||||||
|
|
||||||
|
# Allow few more Beacon frames
|
||||||
|
time.sleep(0.5)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if isinstance(e, Exception) and str(e) == "AP startup failed":
|
if isinstance(e, Exception) and str(e) == "AP startup failed":
|
||||||
if not he_supported():
|
if not he_supported():
|
||||||
|
|
Loading…
Reference in a new issue