Mavvas Posted February 8, 2018 Posted February 8, 2018 In the 3.4 Kernel I could call: rmmod dhd modprobe dhd op_mode=2 To set the wifi module to Access Point mode. But with the latest Kernel 4.14(?) neither of these modules exist. Does anyone know what the equivalent of this code would be for 4.14, or some other way to enable AP mode?
Igor Posted February 8, 2018 Posted February 8, 2018 6 hours ago, Mavvas said: To set the wifi module to Access Point mode. But with the latest Kernel 4.14(?) neither of these modules exist. Does anyone know what the equivalent of this code would be for 4.14, or some other way to enable AP mode? You don't need to specify the mode in a modern kernel. It knows how to switch out of the box. A module for wireless is brcmfmac and it is enabled by default. Try to use armbian-config way of setting AP.
Mavvas Posted February 8, 2018 Author Posted February 8, 2018 9 hours ago, Igor said: You don't need to specify the mode in a modern kernel. It knows how to switch out of the box. A module for wireless is brcmfmac and it is enabled by default. Try to use armbian-config way of setting AP. Thanks for the suggestion, I'll look into it in a bit, but I need it to be done through script. Would the following work? rmmod brcmfmac modprobe brcmfmac op_mode=2 Also I'm using the nanopi-neo-air_eflasher_4.14.img if it helps.
Igor Posted February 8, 2018 Posted February 8, 2018 5 minutes ago, Mavvas said: Also I'm using the nanopi-neo-air_eflasher_4.14.img if it helps. No idea. We only provide support for Armbian builds. 5 minutes ago, Mavvas said: rmmod brcmfmac modprobe brcmfmac op_mode=2 No. Read what I wrote once again.
Mavvas Posted February 9, 2018 Author Posted February 9, 2018 6 hours ago, Igor said: No idea. We only provide support for Armbian builds. No. Read what I wrote once again. My bad, I didn't realize that wasn't an armbian build. I just figured since it was on the wiki it was armbian. If I switch to the mainline debian build available at armbian can I do the following: flash a custom image onto the eMMC set/get gpio values via script (I'm assuming you can but I'll ask just in case) via script switch to and from AP mode via script If so, consider me switched, but can I get a write up of how to do all of those?
Igor Posted February 9, 2018 Posted February 9, 2018 Armbian images are in (much) better shape than board makers. The answer is yes to all. 4 hours ago, Mavvas said: If so, consider me switched, but can I get a write up of how to do all of those? General things: https://docs.armbian.com/User-Guide_Getting-Started/ Gpio: http://linux-sunxi.org/GPIO Flasher: https://github.com/zador-blood-stained/fel-mass-storage AP/STA switching will be more tricky - only the most important tip: adapters are used by Network Manager by default - if you want to use hostapd you need to mask that adaptor in its config. You can see how we do this: https://github.com/armbian/config/blob/dev/debian-config-jobs#L315-L323 ... use our config to make a working hostapd config, then a script to switch between. If you can't manage to work out with those tips, ask for help in comunity section or hire someone.
Igor Posted February 9, 2018 Posted February 9, 2018 One more trouble. Our hostapd autdetection tool needs network connection. Since this is without this wont work. Manual then.Wrote on mobile
Recommended Posts