Some tests assume that only a single channel is used. Skip,
such tests/checks when MCC is enabled.
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
from test_p2p_persistent import invite_from_go
from test_p2p_persistent import invite
from test_ap_ht import clear_scan_cache
+from utils import HwsimSkip
def test_concurrent_autogo(dev, apdev):
"""Concurrent P2P autonomous GO"""
def test_concurrent_invitation_channel_mismatch(dev, apdev):
"""P2P persistent group invitation and channel mismatch"""
+ if dev[0].get_mcc() > 1:
+ raise HwsimSkip("Skip due to MCC being enabled")
+
form(dev[0], dev[1])
dev[0].dump_monitor()
dev[1].dump_monitor()
raise Exception("Not a P2P Public Action frame " + str(dialog_token))
if p2p['subtype'] != P2P_INVITATION_RESP:
raise Exception("Unexpected subtype %d" % p2p['subtype'])
- if p2p['p2p_status'] != 7:
+ if p2p['p2p_status'] != 7 and dev[1].get_mcc() <= 1:
raise Exception("Unexpected status %d" % p2p['p2p_status'])
def test_p2p_msg_invitation_req_unknown(dev, apdev):