{"action":"created","issue":{"url":"https://api.github.com/repos/oblique/create_ap/issues/199","repository_url":"https://api.github.com/repos/oblique/create_ap","labels_url":"https://api.github.com/repos/oblique/create_ap/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/oblique/create_ap/issues/199/comments","events_url":"https://api.github.com/repos/oblique/create_ap/issues/199/events","html_url":"https://github.com/oblique/create_ap/issues/199","id":177286000,"number":199,"title":"nl80211: Failed to set channel (freq=2467): -22 (Invalid argument)","user":{"login":"c2lhu","id":1321899,"avatar_url":"https://avatars2.githubusercontent.com/u/1321899?v=4","gravatar_id":"","url":"https://api.github.com/users/c2lhu","html_url":"https://github.com/c2lhu","followers_url":"https://api.github.com/users/c2lhu/followers","following_url":"https://api.github.com/users/c2lhu/following{/other_user}","gists_url":"https://api.github.com/users/c2lhu/gists{/gist_id}","starred_url":"https://api.github.com/users/c2lhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2lhu/subscriptions","organizations_url":"https://api.github.com/users/c2lhu/orgs","repos_url":"https://api.github.com/users/c2lhu/repos","events_url":"https://api.github.com/users/c2lhu/events{/privacy}","received_events_url":"https://api.github.com/users/c2lhu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T20:48:34Z","updated_at":"2018-04-14T21:09:30Z","closed_at":"2018-04-14T21:09:30Z","author_association":"NONE","body":"Hello , I dont know if it has been covered (didnt find any issue like this).\nSo the odd thing is that create_ap works for channel 11 but not for channel 12.\nBeen trying to set up a hot spot connecting to one wifi and ´repeating´ it as my ap. I use nat and no password.\n\nhere is the full debug \n\n ~ sudo create_ap wlp0s20u2 wlp0s20u2 plex --country GR --hostapd-debug 1\nConfig dir: /tmp/create_ap.wlp0s20u2.conf.N7ZyBJeC\nPID: 25935\nNetwork Manager found, set ap0 as unmanaged device... DONE\nwlp0s20u2 is already associated with channel 12 (2467 MHz), fallback to channel 12\nCreating a virtual WiFi interface... ap0 created.\nSharing Internet using method: nat\nhostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlp0s20u2.conf.N7ZyBJeC/hostapd_ctrl\nrandom: Trying to read entropy from /dev/random\nConfiguration file: /tmp/create_ap.wlp0s20u2.conf.N7ZyBJeC/hostapd.conf\nctrl_interface_group=0\nrfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0\nrfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0\nnl80211: TDLS supported\nnl80211: TDLS external setup\nnl80211: Supported cipher 00-0f-ac:1\nnl80211: Supported cipher 00-0f-ac:5\nnl80211: Supported cipher 00-0f-ac:2\nnl80211: Supported cipher 00-0f-ac:4\nnl80211: Supported cipher 00-0f-ac:10\nnl80211: Supported cipher 00-0f-ac:8\nnl80211: Supported cipher 00-0f-ac:9\nnl80211: Supported cipher 00-0f-ac:6\nnl80211: Supported cipher 00-0f-ac:13\nnl80211: Supported cipher 00-0f-ac:11\nnl80211: Supported cipher 00-0f-ac:12\nnl80211: Using driver-based off-channel TX\nnl80211: Use separate P2P group interface (driver advertised support)\nnl80211: interface ap0 in phy phy1\nnl80211: Set mode ifindex 8 iftype 3 (AP)\nnl80211: Setup AP(ap0) - device_ap_sme=0 use_monitor=0\nnl80211: Subscribe to mgmt frames with AP handle 0x117e550\nnl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0x117e550 match=\nnl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0x117e550 match=\nnl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0x117e550 match=\nnl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0x117e550 match=\nnl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0x117e550 match=\nnl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0x117e550 match=\nnl80211: Register frame type=0x40 (WLAN_FC_STYPE_PROBE_REQ) nl_handle=0x117e550 match=\nnl80211: Add own interface ifindex 8\nnl80211: if_indices[16]: 8\nphy: phy1\nBSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)\nap0: interface state UNINITIALIZED->COUNTRY_UPDATE\nPrevious country code 00, new country code GR \nContinue interface setup after channel list update\nctrl_iface not configured!\nrandom: Got 20/20 bytes from /dev/random\nnl80211: BSS Event 59 (NL80211_CMD_FRAME) received for ap0\nnl80211: RX frame sa=f0:22:3e:ec:a2:de freq=2467 ssi_signal=-90 fc=0x40 seq_ctrl=0x160 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=42\nnl80211: send_mlme - da= f0:22:3e:ec:a2:de noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3\nnl80211: send_mlme -> send_frame\nnl80211: send_frame - Use bss->freq=0\nnl80211: send_frame -> send_frame_cmd\nnl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)\nhandle_probe_req: send failed\nnl80211: BSS Event 59 (NL80211_CMD_FRAME) received for ap0\nnl80211: RX frame sa=f0:22:3e:ec:a2:de freq=2467 ssi_signal=-90 fc=0x40 seq_ctrl=0x170 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=207\nnl80211: send_mlme - da= f0:22:3e:ec:a2:de noack=1 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0x50 (WLAN_FC_STYPE_PROBE_RESP) nlmode=3\nnl80211: send_mlme -> send_frame\nnl80211: send_frame - Use bss->freq=0\nnl80211: send_frame -> send_frame_cmd\nnl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)\nhandle_probe_req: send failed\nnl80211: Ignore RTM_NEWLINK event for foreign ifindex 3\nnl80211: Ignored event (cmd=34) for foreign interface (ifindex 3 wdev 0x0)\nChannel list update timeout - try to continue anyway\nnl80211: Regulatory information - country=00\nnl80211: 2402-2472 @ 40 MHz 20 mBm\nnl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)\nnl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)\nnl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)\nnl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)\nnl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)\nnl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)\nnl80211: 57240-63720 @ 2160 MHz 0 mBm\nnl80211: Added 802.11b mode based on 802.11g information\nCompleting interface initialization\nMode: IEEE 802.11g  Channel: 12  Frequency: 2467 MHz\nDFS 0 channels required radar detection\nnl80211: Set freq 2467 (ht_enabled=0, vht_enabled=0, bandwidth=20 MHz, cf1=2467 MHz, cf2=0 MHz)\n- freq=2467\n- vht_enabled=0\n- ht_enabled=0\n  nl80211: Failed to set channel (freq=2467): -22 (Invalid argument)\n  Could not set channel for kernel driver\n  Interface initialization failed\n  ap0: interface state COUNTRY_UPDATE->DISABLED\n  ap0: AP-DISABLED \n  hostapd_interface_deinit_free(0x117bcb0)\n  hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1\n  hostapd_interface_deinit(0x117bcb0)\n  ap0: interface state DISABLED->DISABLED\n  hostapd_bss_deinit: deinit bss ap0\n  ap0: Deauthenticate all stations\n  nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=3\n  nl80211: send_mlme -> send_frame\n  nl80211: send_frame - Use bss->freq=0\n  nl80211: send_frame -> send_frame_cmd\n  nl80211: Frame command failed: ret=-22 (Invalid argument) (freq=0 wait=0)\n  ap0: AP-DISABLED \n  hostapd_cleanup(hapd=0x117ea70 (ap0))\n  hostapd_free_hapd_data: Interface ap0 wasn't started\n  hostapd_interface_deinit_free: driver=0x49d580 drv_priv=0x117d1d0 -> hapd_deinit\n  nl80211: deinit ifname=ap0 disabled_11b_rates=0\n  nl80211: Remove monitor interface: refcount=0\n  nl80211: Remove beacon (ifindex=8)\n  netlink: Operstate: ifindex=8 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)\n  nl80211: Unsubscribe mgmt frames handle 0x88888888899f6dd9 (deinit)\n  hostapd_interface_free(0x117bcb0)\n  hostapd_interface_free: free hapd 0x117ea70\n  hostapd_cleanup_iface(0x117bcb0)\n  hostapd_cleanup_iface_partial(0x117bcb0)\n  hostapd_cleanup_iface: free iface=0x117bcb0\n\nDoing cleanup.. done\n"},"comment":{"url":"https://api.github.com/repos/oblique/create_ap/issues/comments/381360693","html_url":"https://github.com/oblique/create_ap/issues/199#issuecomment-381360693","issue_url":"https://api.github.com/repos/oblique/create_ap/issues/199","id":381360693,"user":{"login":"c2lhu","id":1321899,"avatar_url":"https://avatars2.githubusercontent.com/u/1321899?v=4","gravatar_id":"","url":"https://api.github.com/users/c2lhu","html_url":"https://github.com/c2lhu","followers_url":"https://api.github.com/users/c2lhu/followers","following_url":"https://api.github.com/users/c2lhu/following{/other_user}","gists_url":"https://api.github.com/users/c2lhu/gists{/gist_id}","starred_url":"https://api.github.com/users/c2lhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c2lhu/subscriptions","organizations_url":"https://api.github.com/users/c2lhu/orgs","repos_url":"https://api.github.com/users/c2lhu/repos","events_url":"https://api.github.com/users/c2lhu/events{/privacy}","received_events_url":"https://api.github.com/users/c2lhu/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T21:09:30Z","updated_at":"2018-04-14T21:09:30Z","author_association":"NONE","body":"Hey thank you for you time dude! I have since come to the understanding that my distro conf doesn't allow changing the regdom so this issue is now as you already noted a crda related thing. Thanks again I'm closing this."}}
{"actor":{"display_login":"c2lhu"}}