Power & Source of Big Ideas

NanoPi-NEO-Air turn-wifi-into-apmode doesnt work

Moderators: chensy, FATechsupport

Welcome to Ubuntu 16.04.2 LTS 3.4.39-h3
System load: 1.12 Up time: 27 sec
Memory usage: 6 % of 494Mb IP:
CPU temp: 49°C
Usage of /: 27% of 7.2G


root@NanoPi-NEO-Air:/home/pi# sudo turn-wifi-into-apmode yes
Enter wireless name [default: friendlyelec-wifiap]: @@@@@
Enter password [default: 123456789]:
Enter password again:
udhcpd.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable udhcpd
insserv: warning: current start runlevel(s) (empty) of script `udhcpd' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `udhcpd' overrides LSB defaults (0 1 6).
Synchronizing state of dnsmasq.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable dnsmasq
insserv: warning: current start runlevel(s) (empty) of script `dnsmasq' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dnsmasq' overrides LSB defaults (0 1 6).
/sbin/dhclient: no process found
-----------------------------------
Go into ap mode success
Please connect your computer to the wireless network:
Wireless Name: @@@@
Password: @@@@@
If you want to connect hotspot, Please visit: 192.168.8.1:3000
done.
root@NanoPi-NEO-Air:/home/pi# iwconfig wlan0 power off
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; Invalid argument.
root@NanoPi-NEO-Air:/home/pi# cat /sys/module/bcmdhd/parameters/op_mode
0
cybero wrote:
Welcome to Ubuntu 16.04.2 LTS 3.4.39-h3
System load: 1.12 Up time: 27 sec
Memory usage: 6 % of 494Mb IP:
CPU temp: 49°C
Usage of /: 27% of 7.2G


root@NanoPi-NEO-Air:/home/pi# sudo turn-wifi-into-apmode yes
Enter wireless name [default: friendlyelec-wifiap]: @@@@@
Enter password [default: 123456789]:
Enter password again:
udhcpd.service is not a native service, redirecting to systemd-sysv-install
Executing /lib/systemd/systemd-sysv-install enable udhcpd
insserv: warning: current start runlevel(s) (empty) of script `udhcpd' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `udhcpd' overrides LSB defaults (0 1 6).
Synchronizing state of dnsmasq.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable dnsmasq
insserv: warning: current start runlevel(s) (empty) of script `dnsmasq' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `dnsmasq' overrides LSB defaults (0 1 6).
/sbin/dhclient: no process found
-----------------------------------
Go into ap mode success
Please connect your computer to the wireless network:
Wireless Name: @@@@
Password: @@@@@
If you want to connect hotspot, Please visit: 192.168.8.1:3000
done.
root@NanoPi-NEO-Air:/home/pi# iwconfig wlan0 power off
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan0 ; Invalid argument.
root@NanoPi-NEO-Air:/home/pi# cat /sys/module/bcmdhd/parameters/op_mode
0


Use at least https://www.armbian.com/nanopi-neo-air/

Since armbian scripts https://www.youtube.com/watch?v=__BJtInOQFY needs internet to setup AP, this easy way will not work, but other standard ways will.

For AP on prehistoric 3.4.39 kernel you need to load wireless module with op_mode=2 to switch to AP mode ... for modern kernel it just works.

Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 5 minutes)
Most users ever online was 2865 on Sun Nov 10, 2019 5:27 am

Users browsing this forum: No registered users and 3 guests