|
@@ -70,6 +70,7 @@ function setup_wifi_atheros {
|
70
|
70
|
cd $curr_dir
|
71
|
71
|
update_wifi_adaptors
|
72
|
72
|
if [ $IFACE ]; then
|
|
73
|
+ wpa_action ${IFACE} stop
|
73
|
74
|
wpa_cli -i ${IFACE} terminate
|
74
|
75
|
ifconfig $IFACE up
|
75
|
76
|
fi
|
|
@@ -207,6 +208,7 @@ function hotspot_off {
|
207
|
208
|
echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
|
208
|
209
|
fi
|
209
|
210
|
|
|
211
|
+ wpa_action ${WIFI_INTERFACE} stop
|
210
|
212
|
wpa_cli -i ${WIFI_INTERFACE} terminate
|
211
|
213
|
systemctl restart network-manager
|
212
|
214
|
}
|
|
@@ -494,6 +496,7 @@ function disable_wifi {
|
494
|
496
|
echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
|
495
|
497
|
echo 'source-directory /etc/network/interfaces.d' >> /etc/network/interfaces
|
496
|
498
|
systemctl restart network-manager
|
|
499
|
+ wpa_action ${WIFI_INTERFACE} stop
|
497
|
500
|
wpa_cli -i ${WIFI_INTERFACE} terminate
|
498
|
501
|
else
|
499
|
502
|
networks_from_file
|