networking - AP mode with wpa_supplicant - Ask Ubuntu


i trying set wifi adapter (qualcomm atheros sparrow 802.11ad) in ubuntu 16.10 kernel v4.8 work in ap mode using wpa_supplicant v2.4. following steps:

  1. i create configuration file in /etc/wpa_supplicant.conf following configuration taken wil6210 website:

    ap_scan=2  network={         frequency=60480         ssid="the_ssid_string"         mode=2         key_mgmt=none } 
  2. i run following command initialize wpa_supplicant:

    wpa_supplicant -dnl80211 -iwlp2s0 -c/etc/wpa_supplicant.conf

    i error indicating wpa_supplicant not able parse ap_scan omit line testing , after execute again , following new error:

    successfully initialized wpa_supplicant failed create interface p2p-dev-wlp2s0: -22 (invalid argument) nl80211: failed create p2p device interface p2p-dev-wlp2s0 p2p: failed enable p2p device interface wlp2s0: failed start ap functionality 

any clue how solve problem?

here detailed debug output:

wpa_supplicant v2.4 random: trying read entropy /dev/random initialized wpa_supplicant initializing interface 'wlp2s0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'n/a' bridge 'n/a' configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' reading configuration file '/etc/wpa_supplicant.conf' ap_scan=2 line: 3 - start of new network block frequency=60480 (0xec40) ssid - hexdump_ascii(len=15):      74 68 65 5f 73 73 69 64 5f 73 74 72 69 6e 67      the_ssid_string  mode=2 (0x2) key_mgmt: 0x4 priority group 0    id=0 ssid='the_ssid_string' rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0 rfkill: initial event: idx=1 type=2 op=0 soft=1 hard=0 rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0 rfkill: initial event: idx=3 type=1 op=0 soft=0 hard=0 nl80211: supported cipher 00-0f-ac:8 nl80211: supports probe response offload in ap mode nl80211: use p2p_device support nl80211: interface wlp2s0 in phy phy0 nl80211: set mode ifindex 3 iftype 2 (station) nl80211: subscribe mgmt frames non-ap handle 0x5625e3623270 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=040a nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 04 0a nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=040b nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 04 0b nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=040c nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 04 0c nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=040d nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 04 0d nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=090a nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 09 0a nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=090b nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 09 0b nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=090c nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 09 0c nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=090d nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 09 0d nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=0409506f9a09 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=6): 04 09 50 6f 9a 09 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=7f506f9a09 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=5): 7f 50 6f 9a 09 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=0801 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 08 01 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=06 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=1): 06 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=0a07 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 0a 07 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=0a11 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 0a 11 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=1101 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 11 01 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=1102 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 11 02 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match=0505 nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=2): 05 05 nl80211: failed register action frame processing - ignore netlink: operstate: ifindex=3 linkmode=1 (userspace-control), operstate=5 (if_oper_dormant) nl80211: driver param='(null)' add interface wlp2s0 new radio phy0 nl80211: regulatory information - country=00 nl80211: 2402-2472 @ 40 mhz 20 mbm nl80211: 2457-2482 @ 40 mhz 20 mbm (no ir) nl80211: 2474-2494 @ 20 mhz 20 mbm (no ofdm) (no ir) nl80211: 5170-5250 @ 80 mhz 20 mbm (no ir) nl80211: 5250-5330 @ 80 mhz 20 mbm (dfs) (no ir) nl80211: 5490-5730 @ 160 mhz 20 mbm (dfs) (no ir) nl80211: 5735-5835 @ 80 mhz 20 mbm (no ir) nl80211: 57240-63720 @ 2160 mhz 0 mbm wlp2s0: own mac address: 04:ce:14:07:59:21 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0 wpa_driver_nl80211_set_key: ifindex=3 (wlp2s0) alg=0 addr=(nil) key_idx=5 set_tx=0 seq_len=0 key_len=0 wlp2s0: rsn: flushing pmkid list in driver nl80211: flush pmkids wlp2s0: setting scan request: 0.100000 sec tdls: tdls operation not supported driver tdls: driver uses internal link setup tdls: driver not support tdls channel switching wlp2s0: wps: uuid based on mac address: 17fb72f2-8ee9-50b3-829b-3b29e77dfa2b engine: loading dynamic engine engine: loading dynamic engine eapol: supp_pae entering state disconnected eapol: supplicant port status: unauthorized nl80211: skip set_supp_port(unauthorized) while not associated eapol: key_rx entering state no_key_receive eapol: supp_be entering state initialize eap: eap entering state disabled wlp2s0: added interface wlp2s0 wlp2s0: state: disconnected -> disconnected nl80211: set wlp2s0 operstate 0->0 (dormant) netlink: operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (if_oper_dormant) nl80211: create interface iftype 10 (p2p_device) nl80211: new p2p device interface p2p-dev-wlp2s0 (0x2) created initializing interface 'p2p-dev-wlp2s0' conf '/etc/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'n/a' bridge 'n/a' configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' reading configuration file '/etc/wpa_supplicant.conf' ap_scan=2 line: 3 - start of new network block frequency=60480 (0xec40) ssid - hexdump_ascii(len=15):      74 68 65 5f 73 73 69 64 5f 73 74 72 69 6e 67      the_ssid_string  mode=2 (0x2) key_mgmt: 0x4 priority group 0    id=0 ssid='the_ssid_string' rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0 rfkill: initial event: idx=1 type=2 op=0 soft=1 hard=0 rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0 rfkill: initial event: idx=3 type=1 op=0 soft=0 hard=0 not read interface p2p-dev-wlp2s0 flags: no such device nl80211: supported cipher 00-0f-ac:8 nl80211: supports probe response offload in ap mode nl80211: use p2p_device support nl80211: interface p2p-dev-wlp2s0 in phy phy0 nl80211: set mode ifindex 0 iftype 10 (p2p_device) nl80211: failed set interface 0 mode 10: -22 (invalid argument) nl80211: subscribe mgmt frames non-ap handle 0x5625e36437a0 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=040a nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=040b nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=040c nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=040d nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=090a nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=090b nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=090c nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=090d nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=0409506f9a09 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=7f506f9a09 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=0801 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=06 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=0a07 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=0a11 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=1101 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=1102 nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e36437a0 match=0505 nl80211: start p2p device p2p-dev-wlp2s0 (0x2): success nl80211: driver param='(null)' add interface p2p-dev-wlp2s0 existing radio phy0 nl80211: regulatory information - country=00 nl80211: 2402-2472 @ 40 mhz 20 mbm nl80211: 2457-2482 @ 40 mhz 20 mbm (no ir) nl80211: 2474-2494 @ 20 mhz 20 mbm (no ofdm) (no ir) nl80211: 5170-5250 @ 80 mhz 20 mbm (no ir) nl80211: 5250-5330 @ 80 mhz 20 mbm (dfs) (no ir) nl80211: 5490-5730 @ 160 mhz 20 mbm (dfs) (no ir) nl80211: 5735-5835 @ 80 mhz 20 mbm (no ir) nl80211: 57240-63720 @ 2160 mhz 0 mbm p2p-dev-wlp2s0: own mac address: 04:ce:14:07:59:21 p2p-dev-wlp2s0: rsn: flushing pmkid list in driver nl80211: flush pmkids p2p-dev-wlp2s0: state: disconnected -> inactive p2p-dev-wlp2s0: wps: uuid first interface: 17fb72f2-8ee9-50b3-829b-3b29e77dfa2b engine: loading dynamic engine engine: loading dynamic engine eapol: supp_pae entering state disconnected eapol: supplicant port status: unauthorized nl80211: skip set_supp_port(unauthorized) while not associated eapol: key_rx entering state no_key_receive eapol: supp_be entering state initialize eap: eap entering state disabled p2p: add operating class 180 p2p: channels - hexdump(len=3): 01 02 03 p2p: own listen channel: 180:2 p2p: random operating channel: 180:2 p2p: initialized p2p: channels: 180:1,2,3 p2p: cli_channels: p2p-dev-wlp2s0: added interface p2p-dev-wlp2s0 p2p-dev-wlp2s0: state: inactive -> disconnected nl80211: set p2p-dev-wlp2s0 operstate 0->0 (dormant) netlink: operstate: ifindex=0 linkmode=-1 (no change), operstate=5 (if_oper_dormant) random: got 20/20 bytes /dev/random wlp2s0: state: disconnected -> scanning setting ap (ssid='the_ssid_string') nl80211: set mode ifindex 3 iftype 3 (ap) nl80211: unsubscribe mgmt frames handle 0x8888dead6beabaf9 (start ap) nl80211: setup ap(wlp2s0) - device_ap_sme=1 use_monitor=0 nl80211: subscribe mgmt frames ap handle 0x5625e3623270 (device sme) nl80211: register frame type=0xd0 (wlan_fc_stype_action) nl_handle=0x5625e3623270 match= nl80211: register frame command failed (type=208): ret=-114 (operation in progress) nl80211: register frame match - hexdump(len=0): [null] nl80211: remove monitor interface: refcount=0 wlp2s0: failed start ap functionality wlp2s0: state: scanning -> disconnected nl80211: set wlp2s0 operstate 0->0 (dormant) netlink: operstate: ifindex=3 linkmode=-1 (no change), operstate=5 (if_oper_dormant) eapol: disable timer tick eapol: disable timer tick 

i found problem, instance of wpa_supplicant running , blocking request. killed process , able run wireless adapter in access point mode.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User