I was able to create an adhoc access point on my debian (raspberry pi) but when searching for wifi it shows the access point as a different symbol (ad hoc) and when I disconnect from it the access point shuts down. How do I prevent it from shutting down or used another mode? Below is most of my /etc/network/interfaces
(the other lines are for wlan1)
auto wlan0
iface wlan0 inet static
address 10.0.0.1
netmask 255.255.255.0
wireless-channel 1
wireless-essid MYNETWORK
wireless-mode ad-hoc