From 2a05284be6d389323bae53e84d485525a4c5c0b7 Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 28 Mar 2018 10:09:58 +0000 Subject: [PATCH] Specifies interface with -i option and wpa_cli. Resolves #163 --- includes/configure_client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/configure_client.php b/includes/configure_client.php index 206e6dc2..77c50b1b 100755 --- a/includes/configure_client.php +++ b/includes/configure_client.php @@ -123,9 +123,9 @@ function DisplayWPAConfig(){ } } - exec( 'sudo wpa_cli scan' ); + exec( 'sudo wpa_cli -i ' . RASPI_WIFI_CLIENT_INTERFACE . ' scan' ); sleep(3); - exec( 'sudo wpa_cli scan_results',$scan_return ); + exec( 'sudo wpa_cli -i ' . RASPI_WIFI_CLIENT_INTERFACE . ' scan_results',$scan_return ); for( $shift = 0; $shift < 2; $shift++ ) { array_shift($scan_return); }