Exception: P2P Listen success although in rfkill

xiangruim xiangruix.meng at intel.com
Thu Aug 17 01:33:21 PDT 2017


Hi guys


lkp-tests(https://github.com/01org/lkp-tests) enabled hwsim test 
recently, and currently

we have made most cases pass.


But when we test rfkill_p2p_discovery_p2p_dev case, it always failed.

#test env:
kconfig: x86_64-rhel-7.2
compiler: gcc-6
rootfs: debian-x86_64-2016-08-31.cgz
kernel: vmlinuz-4.13.0-rc1-00096-g54a7d50

#need_kconfig:
- CONFIG_WLAN=y
- CONFIG_CFG80211=m
- CONFIG_CFG80211_WEXT=y
- CONFIG_MAC80211=m
- CONFIG_MAC80211_HWSIM=m
- CONFIG_MAC80211_LEDS=y
- CONFIG_MAC80211_MESH=y
- CONFIG_MAC80211_DEBUGFS=y

#The error message like this
-----------------------------------------------------------------------------------------
2017-08-02 12:24:42     ./run-tests.py rfkill_p2p_discovery_p2p_dev
DEV: wlan0: 02:00:00:00:00:00
DEV: wlan1: 02:00:00:00:01:00
DEV: wlan2: 02:00:00:00:02:00
APDEV: wlan3
APDEV: wlan4
START rfkill_p2p_discovery_p2p_dev 1/1
Test: rfkill block/unblock P2P Discovery with P2P Device
rfkill block 0
rfkill block 1
rfkill unblock 0
rfkill unblock 1
wlan7: Trying to discover peer 02:00:00:00:00:00
rfkill block 0
rfkill block 1
P2P Listen success although in rfkill
Traceback (most recent call last):
   File "./run-tests.py", line 453, in main
     t(dev, apdev)
   File "/lkp/benchmarks/hwsim/tests/hwsim/test_rfkill.py", line 181, in 
test_rfkill_p2p_discovery_p2p_dev
     _test_rfkill_p2p_discovery(wpas, dev[1])
   File "/lkp/benchmarks/hwsim/tests/hwsim/test_rfkill.py", line 139, in 
_test_rfkill_p2p_discovery
     raise Exception("P2P Listen success although in rfkill")
Exception: P2P Listen success although in rfkill
FAIL rfkill_p2p_discovery_p2p_dev 1.821473 2017-08-02 12:24:44.237611
passed 0 test case(s)
skipped 0 test case(s)
failed tests: rfkill_p2p_discovery_p2p_dev
-------------------------------------------------------
it seems that rfkill can not block wpas. Thus, wpas listens to dev[1] 
all the time. Maybe rfkill do not have
the authority to block wpas.


any ideas ?



Thanks



More information about the Hostap mailing list