Skip to content

Instantly share code, notes, and snippets.

Created April 10, 2017 14:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7b770d2870fb509938e9645322658c22 to your computer and use it in GitHub Desktop.
Save anonymous/7b770d2870fb509938e9645322658c22 to your computer and use it in GitHub Desktop.
#change wlan0 to your wireless device
interface=wlan0
driver=nl80211
ssid=test
channel=1
@tjt263
Copy link

tjt263 commented Apr 10, 2017

root@debian:~# hostapd ~/hostapd-minimal.conf
Configuration file: /root/hostapd-minimal.conf
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED 
hostapd_free_hapd_data: Interface wlan0 wasn't started

@tjt263
Copy link

tjt263 commented Apr 10, 2017

	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * WDS
		 * monitor
		 * mesh point
		 * P2P-client
		 * P2P-GO
		 * outside context of a BSS

@tjt263
Copy link

tjt263 commented Apr 10, 2017

root@debian:~# lspci | grep 'Network'
03:00.0 Network controller: Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)

@tjt263
Copy link

tjt263 commented Apr 10, 2017

root@debian:~# hostapd -ddd ~/hostapd-minimal.conf
random: Trying to read entropy from /dev/random
Configuration file: /root/hostapd-minimal.conf
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=1 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=4 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=8 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=9 type=1 op=0 soft=0 hard=0
nl80211: TDLS supported
nl80211: TDLS external setup
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Supported cipher 00-0f-ac:6
nl80211: Supported cipher 00-0f-ac:13
nl80211: Supported cipher 00-0f-ac:11
nl80211: Supported cipher 00-0f-ac:12
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlan0 in phy phy2
nl80211: Set mode ifindex 5 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x55dcb09bc1e0
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x55dcb09bc1e0 match=
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=5)
netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Teardown AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x55dcb09bd720)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x55dcb09bd720)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED 
hostapd_cleanup(hapd=0x55dcb09be680 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x55dcb09bd720)
hostapd_interface_free: free hapd 0x55dcb09be680
hostapd_cleanup_iface(0x55dcb09bd720)
hostapd_cleanup_iface_partial(0x55dcb09bd720)
hostapd_cleanup_iface: free iface=0x55dcb09bd720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment