简体   繁体   中英

Start Hostapd on Android over ADB Shell

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM