mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Specifies interface with -i option and wpa_cli. Resolves #163
This commit is contained in:
parent
1b387b0f6d
commit
2a05284be6
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue