]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Use /var/run/hostapd-global to avoid socket file in work dir
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 10 May 2013 14:09:55 +0000 (17:09 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 May 2013 14:09:55 +0000 (17:09 +0300)
This makes some cases more convenient with read-only file systems.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

tests/hwsim/hostapd.py
tests/hwsim/start.sh

index db586e9b465172e129b1792dd35c7dbe8ddefd57..8bf4a56a9d03b9f5d64c60cd2c6d09e1b8f1c0a8 100644 (file)
@@ -13,7 +13,7 @@ import wpaspy
 
 logger = logging.getLogger(__name__)
 hapd_ctrl = '/var/run/hostapd'
-hapd_global = 'hostapd-global'
+hapd_global = '/var/run/hostapd-global'
 
 class HostapdGlobal:
     def __init__(self):
index 36502e81969af43bd9c1ca8a722b50367c804895..9a76ecb1bf3ffb1b0b0182b5431607eebf0e93aa 100755 (executable)
@@ -15,6 +15,6 @@ sudo tcpdump -ni hwsim0 -s 2500 -w $DIR/logs/$DATE-hwsim0.dump &
 sudo $WPAS -Dnl80211 -iwlan0 -c $DIR/p2p0.conf -ddKt > $DIR/logs/$DATE-log0 &
 sudo $WPAS -Dnl80211 -iwlan1 -c $DIR/p2p1.conf -ddKt > $DIR/logs/$DATE-log1 &
 sudo $WPAS -Dnl80211 -iwlan2 -c $DIR/p2p2.conf -ddKt > $DIR/logs/$DATE-log2 &
-sudo $HAPD -ddKt -g $DIR/hostapd-global -G admin -ddKt > $DIR/logs/$DATE-hostapd &
+sudo $HAPD -ddKt -g /var/run/hostapd-global -G admin -ddKt > $DIR/logs/$DATE-hostapd &
 sleep 1
 sudo chown $USER $DIR/logs/$DATE-hwsim0.dump