select correct wifi interface as client

This commit is contained in:
zbchristian 2020-06-14 18:19:34 +02:00 committed by GitHub
parent 417e9489bb
commit a8238d688e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ $arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
if ($arrHostapdConf['WifiAPEnable'] == 1) { if ($arrHostapdConf['WifiAPEnable'] == 1) {
$client_interface = 'uap0'; $client_interface = 'uap0';
} else { } else {
$client_interface = $_SESSION['ap_interface']; $client_interface = $_SESSION['wifi_client_interface'];
} }
$ap_iface = $_SESSION['ap_interface']; $ap_iface = $_SESSION['ap_interface'];
$MACPattern = '"([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}"'; $MACPattern = '"([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}"';