Two things, one to gather more information, the other a possible fix.
1) Edit /lib/netifd/netifd-wireless.sh and insert this line at the beginning, before the NETIFD_MAIN_DIR line:
echo "$@" >>/tmp/netifd.log
Then run 'wifi reload radio0' and post the contents of /tmp/netifd.log.
Restore the netifd-wireless.sh to rom (rm /overlay/lib/netifd/netifd-wireless.sh).
"wifi reload radio0" dosn't seem to produce any file inside /tmp/
this is the log after a "wifi down" and "wifi up"
mac80211 setup radio0 {"config":{"macaddr":"c4:3d:c7:97:79:45","hwmode":"11ng","ht_capab":["SHORT-GI-40","TX-STBC","RX-STBC1","DSSS_CCK-40"],"htmode":"HT40-","country":"IT","channel":"6","txpower":20},"interfaces":{"0":{"bridge":"br-lan","config":{"mode":"ap","ssid":"mywpassidhere","encryption":"psk2","key":"mywpakeyhere","wps_pushbutton":true,"wps_pin":"mypinhere","network":["lan"]}},"1":{"config":{"mode":"ap","ssid":"MelaBacata","encryption":"wep-shared","key1":"s:pocasicurezza","hidden":true,"macfilter":"allow","maclist":["mymachere"],"network":["guest"]}}}}
mac80211 setup radio1 {"config":{"channel":"36","macaddr":"c4:3d:c7:97:79:47","hwmode":"11na","ht_capab":["SHORT-GI-40","TX-STBC","RX-STBC1","DSSS_CCK-40"],"txpower":17,"htmode":"HT40+","country":"IT"},"interfaces":{"0":{"bridge":"br-lan","config":{"mode":"ap","encryption":"psk2","wps_pushbutton":true,"ssid":"myradio1ssidhere","key":"mykeyhere","wps_pin":"mypinhere","network":["lan"]}}}}
everything seems correct to me.
2) Edit /lib/netifd/hostapd.sh, around line 236, after this line:
local wep_keyidx=0
Insert this line:
json_get_vars key
Then wifi reload and check the hostapd config.
seems to work now... i get the right hex value for the actual WEP key used in config even if the WPA SSID comes before in the config.
EDIT: tested both combinations and both seems to work fine now.
(Last edited by Manp on 23 Dec 2013, 12:16)