[PATCH 02/14] tests: Skip wpas_ap_dfs() test if DFS is not supported

Peer, Ilan ilan.peer at intel.com
Thu Oct 22 07:06:41 PDT 2015


> -----Original Message-----
> From: Jouni Malinen [mailto:j at w1.fi]
> Sent: Friday, October 16, 2015 20:16
> To: Peer, Ilan
> Cc: hostap at lists.shmoo.com; Stern, Avraham
> Subject: Re: [PATCH 02/14] tests: Skip wpas_ap_dfs() test if DFS is not
> supported
> 
> On Wed, Oct 14, 2015 at 06:43:08PM +0300, Ilan Peer wrote:
> > Skip wpas_ap_dfs on kernel builds that do not support DFS.
> 
> > diff --git a/tests/hwsim/test_wpas_ap.py b/tests/hwsim/test_wpas_ap.py
> > @@ -4,6 +4,7 @@ @@ -302,6 +303,13 @@ def _test_wpas_ap_dfs(dev):
> > +    state = dev[0].get_status_field("wpa_state")
> > +    if state != "DFS":
> > +	logger.info("Interface state not DFS: " + state)
> > +	if not os.path.exists("dfs"):
> > +	    raise HwsimSkip("Assume DFS testing not supported")
> > +	raise Exception("Failed to start DFS AP")
> 
> This cannot be correct.. There is no "DFS" wpa_state, so this would skip the
> test case every time.
> 

My bad. After another look, seems that the failure is due to mac80211_hwsim not supporting an interface combination that includes both  radar_detect_widths and P2P Device support, so the test was failing when trying radar detection when P2P Device was enabled.

Sorry,

Ilan.




More information about the Hostap mailing list