tests: Change list_networks() to use global interface with P2P
authorBen Rosenfeld <ben.rosenfeld@intel.com>
Tue, 5 May 2015 09:36:58 +0000 (12:36 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 8 May 2015 15:29:03 +0000 (18:29 +0300)
commit8e751cfa05476bbc8da5116701ef465eae98a987
treeaab3355c71a638a64962fdb788fd3a0f7a583445
parentd7e2d79b1a467fdba26094464706c9d261833be1
tests: Change list_networks() to use global interface with P2P

list_networks() always used the wlanX control interface to query for the
current list of networks. However, when a dedicated P2P Device is used,
the global control interface should be used when checking persistent
group network profiles.

Fix this by adding an optional parameter indicating that the P2P
networks are requested, and in such a case use the global control
interface.

In addition update test_p2p_persistent to use the argument when needed.

Signed-off-by: Ben Rosenfeld <ben.rosenfeld@intel.com>
tests/hwsim/test_p2p_persistent.py
tests/hwsim/wpasupplicant.py