I am tyring to start hostapd over the adb shell on Android. I want to start hostapd with a custom hostapd.conf
file to add vendor specific elements
interface=wlan0
driver=nl80211
ssid=meinessid
channel=6
hw_mode=g
vendor_elements=dd500911223344
My Problem is, that i cant figure out how to start hostapd (with the custom hostapd.conf) correct over adb shell . My device is a Galaxy Nexus with Cyanogenmod 10.2 Nightly Build. I tried to start hostapd with
# hostapd -B /data/misc/wifi/hostapd.conf
but it didn't worked.
AS your device is galaxy nexus, this would be the steps:-
turn off wifi in UI
give permission to your .conf
file-- chmod 777 hostapd.conf
ifconfig wlan0 up
kill any hostapd is running and then issue this comamnd:- hostapd -e/data/misc/wifi/entropy.bin -BK /data/misc/wifi/hostapd.conf
Conform in ps
hostapd is running.