I've been trying to configure my newly bought Asus RT-AX88U AP using nvram commands via serial connection. Like, when I try to set the below values on the AP using nvram commands, the nvram values are getting set (verified by using 'nvram get' command). But when I try to do 'nvram restart' OR 'rc restart' to set effect to the changes I made to nvram values, I am getting errors as shown below. Due to this, my settings are not effective on the AP. Let me know if anybody faced this issue, have a workaround or anyother thoughts about how I can solve this.
Code:
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_auth="0"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_auth_mode="none"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_akm=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_wep="disabled"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_preauth="0"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key1=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key2=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key3=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key4=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_akm="psk2"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_crypto="aes"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_wpa_psk="1234567890"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_closed="0"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key="1"
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key4=""
RT-AX88U-80F8:/tmp/home/root# nvram set wl0_key1=""
RT-AX88U-80F8:/tmp/home/root#
RT-AX88U-80F8:/tmp/home/root# nvram commit
RT-AX88U-80F8:/tmp/home/root#
RT-AX88U-80F8:/tmp/home/root#
RT-AX88U-80F8:/tmp/home/root#
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_auth
0
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_auth_mode
none
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_akm
psk2
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_wep
disabled
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_preauth
0
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key1
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key2
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key3
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key4
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_akm
psk2
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_crypto
aes
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_wpa_psk
nvram get wl0_closed
1234567890
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_closed
0
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key
nvram get wl0_key4
1
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key4
RT-AX88U-80F8:/tmp/home/root# nvram get wl0_key1
RT-AX88U-80F8:/tmp/home/root#
RT-AX88U-80F8:/tmp/home/root# rc restart
Segmentation fault
RT-AX88U-80F8:/tmp/home/root# nvram restart
_netlink_recv_mesg:197 return NULL from rec, why socke is not initialized?