dineshlama
Posts: 34
Joined: Mon Aug 26, 2019 4:40 pm

how to change between AP and normal wifi

Wed Apr 15, 2020 10:12 am

I have made my pi 4B as wireless access point. what is the way to chagne the pi from access point to normal wifi and normal wifi instantly with some command? how can i do this, sicne i want the pi to sometiem act like wiresless access point and sometime as a normal pi whcih can connect to other wifi networks.

drgeoff
Posts: 10765
Joined: Wed Jan 25, 2012 6:39 pm

Re: how to change between AP and normal wifi

Thu Apr 16, 2020 11:18 am

I have several commercial equipments which can operate in AP or station mode. All of them require a reboot when changing from one to the other.

User avatar
dickon
Posts: 1539
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, just outside Reading

Re: how to change between AP and normal wifi

Thu Apr 16, 2020 11:59 am

You shouldn't need a reboot. Just kill off hostapd or wpa_supplicant, and run the other one to switch modes. There are issues with dhcp and the like, but you shouldn't need to reboot when switching if you don't want to.

Return to “Advanced users”