[SOLVED] 6.2 cant turn off AP mode and join wireless network - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: [SOLVED] 6.2 cant turn off AP mode and join wireless network (/showthread.php?tid=1762) Pages:
1
2
|
RE: 6.2 cant turn off AP mode and join wireless network - blarg - 10-07-2019 (10-06-2019, 11:59 PM)TheOldPresbyope Wrote: I believe almost every printable character is legal in an SSID and so should be acceptable to wpa_passphrase. I’m on a road trip and have no convenient way to look at moOde sources ATM but might this instead be a shell script problem? Backtick is a special character in bash. Very possible - I don't have a problem using this SSID with any other device in my house, and I have some pretty oddball stuff. I bet I could manually configure it to work but don't want to do something that might break updates. Much easier to just use Ethernet for now. RE: 6.2 cant turn off AP mode and join wireless network - Tim Curtis - 10-07-2019 It looks like the wpa_passphrase utility hangs waiting for input if special characters for example back-quotes are not escaped. Same for embedded double quotes because moOde's use of the utility encloses the SSID and password in double quotes to cover embedded spaces and single quotes. wpa_passphrase "SSID" "PASSWORD" There is prolly a PHP function to perform escaping on the strings. RE: 6.2 cant turn off AP mode and join wireless network - blarg - 10-09-2019 ...wondering if there’s a way to inject escape characters into the SSID field in wpa_passphrase or the Moode GUI to prevent this... Sort of like abc\’def for SSID abc’def. I guess it depends on how the input is parsed. I’ll give it a shot when I have some time. RE: 6.2 cant turn off AP mode and join wireless network - Tim Curtis - 10-09-2019 Yes, I think escaping does work in wpa_passphrase. In moOde code I would prolly need to use the PHP function addslashes. https://www.php.net/manual/en/function.addcslashes.php Look in the source files below for wpa_passphrase. You only need to edit the lines in net-config.php to test whether addslashes() works for your password that has the back tick. /var/www/net-config.php /var/www/inc/playerlib.php RE: 6.2 cant turn off AP mode and join wireless network - imazed - 11-12-2019 I have a similar problem. Regardless of what is saved for the SSID name in the setup screen, when I run the command Code: wpa_passphrase SSID password The result is always similar to: Network={ ssid="SSID" #psk="password" psk=2f6a0beddf2f0588ee426b0c3a0e3d9a523bb07a05cb857f85d826da80fa75c4 } ssid always =SSID Suggestions please RE: 6.2 cant turn off AP mode and join wireless network - imazed - 11-12-2019 Sorry, I should have said SSID does not have strange characters just Barney and that is retained correctly in the setup screen |