{"action":"created","issue":{"url":"https://api.github.com/repos/fgg89/docker-ap/issues/3","repository_url":"https://api.github.com/repos/fgg89/docker-ap","labels_url":"https://api.github.com/repos/fgg89/docker-ap/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/fgg89/docker-ap/issues/3/comments","events_url":"https://api.github.com/repos/fgg89/docker-ap/issues/3/events","html_url":"https://github.com/fgg89/docker-ap/issues/3","id":182239523,"number":3,"title":"Failed to start on Raspberry Pi 3","user":{"login":"rosenk","id":140263,"avatar_url":"https://avatars.githubusercontent.com/u/140263?v=3","gravatar_id":"","url":"https://api.github.com/users/rosenk","html_url":"https://github.com/rosenk","followers_url":"https://api.github.com/users/rosenk/followers","following_url":"https://api.github.com/users/rosenk/following{/other_user}","gists_url":"https://api.github.com/users/rosenk/gists{/gist_id}","starred_url":"https://api.github.com/users/rosenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rosenk/subscriptions","organizations_url":"https://api.github.com/users/rosenk/orgs","repos_url":"https://api.github.com/users/rosenk/repos","events_url":"https://api.github.com/users/rosenk/events{/privacy}","received_events_url":"https://api.github.com/users/rosenk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-10-11T11:27:00Z","updated_at":"2016-12-09T20:53:55Z","closed_at":null,"body":"I'm trying to use this to start access point into rpi3 but it fails with:\n\n|   \\ ___  **| |___** _ _    /_\\ | _ \\ \n| |) / _ \\/ _| / / -_) '_|  / _ |  _/  \n|___/_**/\\**|_\\____|_|   /_/ __|    \n\n[INFO] Architecture: armv7l\n[INFO] Number of physical wireless interfaces connected: 1\n[INFO] Docker image fgg89/armhf-docker-ap found\n[INFO] Unblocking wifi and setting wlan0 up\n[INFO] Found WLAN config file\n[+] Generating hostapd.conf\n[+] Generating dnsmasq.conf\n[+] Starting the docker container with name ap-container\ncommand failed: Operation not supported (-95)\n[+] Configuring wlan0 with IP address 192.168.7.1\nDevice \"wlan0\" does not exist.\nCannot find device \"wlan0\"\nCannot find device \"wlan0\"\n[+] Adding natting rule to iptables (container)\n[+] Enabling IP forwarding (container)\n[+] Starting hostapd and dnsmasq in the docker container ap-container\n\nI have tried to debug it within my limited knowledge on this subject and apparently:\n`iw phy \"$PHY\" set netns \"$pid\"`\nfails with\n`command failed: Operation not supported (-95)`\n\nI have no idea what exactly this means. Is it not supported by the hardware?\n`$iw list` output:\n\n```\nWiphy phy0\n    max # scan SSIDs: 10\n    max scan IEs length: 2048 bytes\n    Retry short limit: 7\n    Retry long limit: 4\n    Coverage class: 0 (up to 0m)\n    Device supports T-DLS.\n    Supported Ciphers:\n        * WEP40 (00-0f-ac:1)\n        * WEP104 (00-0f-ac:5)\n        * TKIP (00-0f-ac:2)\n        * CCMP (00-0f-ac:4)\n        * CMAC (00-0f-ac:6)\n    Available Antennas: TX 0 RX 0\n    Supported interface modes:\n         * IBSS\n         * managed\n         * AP\n         * P2P-client\n         * P2P-GO\n         * P2P-device\n    Band 1:\n        Capabilities: 0x1020\n            HT20\n            Static SM Power Save\n            RX HT20 SGI\n            No RX STBC\n            Max AMSDU length: 3839 bytes\n            DSSS/CCK HT40\n        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)\n        Minimum RX AMPDU time spacing: 16 usec (0x07)\n        HT TX/RX MCS rate indexes supported: 0-7\n        Bitrates (non-HT):\n            * 1.0 Mbps\n            * 2.0 Mbps (short preamble supported)\n            * 5.5 Mbps (short preamble supported)\n            * 11.0 Mbps (short preamble supported)\n            * 6.0 Mbps\n            * 9.0 Mbps\n            * 12.0 Mbps\n            * 18.0 Mbps\n            * 24.0 Mbps\n            * 36.0 Mbps\n            * 48.0 Mbps\n            * 54.0 Mbps\n        Frequencies:\n            * 2412 MHz [1] (20.0 dBm)\n            * 2417 MHz [2] (20.0 dBm)\n            * 2422 MHz [3] (20.0 dBm)\n            * 2427 MHz [4] (20.0 dBm)\n            * 2432 MHz [5] (20.0 dBm)\n            * 2437 MHz [6] (20.0 dBm)\n            * 2442 MHz [7] (20.0 dBm)\n            * 2447 MHz [8] (20.0 dBm)\n            * 2452 MHz [9] (20.0 dBm)\n            * 2457 MHz [10] (20.0 dBm)\n            * 2462 MHz [11] (20.0 dBm)\n            * 2467 MHz [12] (20.0 dBm)\n            * 2472 MHz [13] (20.0 dBm)\n            * 2484 MHz [14] (disabled)\n    Supported commands:\n         * new_interface\n         * set_interface\n         * new_key\n         * start_ap\n         * join_ibss\n         * set_pmksa\n         * del_pmksa\n         * flush_pmksa\n         * remain_on_channel\n         * frame\n         * set_channel\n         * tdls_oper\n         * start_sched_scan\n         * start_p2p_device\n         * crit_protocol_start\n         * crit_protocol_stop\n         * connect\n         * disconnect\n    Supported TX frame types:\n         * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\n         * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\n         * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\n         * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\n    Supported RX frame types:\n         * managed: 0x40 0xd0\n         * P2P-client: 0x40 0xd0\n         * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0\n         * P2P-device: 0x40 0xd0\n    software interface modes (can always be added):\n    valid interface combinations:\n         * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,\n           total <= 3, #channels <= 2\n         * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,\n           total <= 4, #channels <= 1\n    Device supports scan flush.\n```\n\nPlease help.\n"},"comment":{"url":"https://api.github.com/repos/fgg89/docker-ap/issues/comments/266120391","html_url":"https://github.com/fgg89/docker-ap/issues/3#issuecomment-266120391","issue_url":"https://api.github.com/repos/fgg89/docker-ap/issues/3","id":266120391,"user":{"login":"N2ITN","id":12092115,"avatar_url":"https://avatars.githubusercontent.com/u/12092115?v=3","gravatar_id":"","url":"https://api.github.com/users/N2ITN","html_url":"https://github.com/N2ITN","followers_url":"https://api.github.com/users/N2ITN/followers","following_url":"https://api.github.com/users/N2ITN/following{/other_user}","gists_url":"https://api.github.com/users/N2ITN/gists{/gist_id}","starred_url":"https://api.github.com/users/N2ITN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/N2ITN/subscriptions","organizations_url":"https://api.github.com/users/N2ITN/orgs","repos_url":"https://api.github.com/users/N2ITN/repos","events_url":"https://api.github.com/users/N2ITN/events{/privacy}","received_events_url":"https://api.github.com/users/N2ITN/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T20:53:55Z","updated_at":"2016-12-09T20:53:55Z","body":"For reference, here is my code to take the POST request on 'network' and 'passkey' to reconnect to the new network\r\n```python\r\ndef reconnect(network,passkey):\r\n    from wifi import Cell, Scheme\r\n    os.system(\"cd /home/pirate/docker-ap && sudo ./docker_ap stop wlan0\")\r\n    myfi = Cell.all('wlan0')\r\n    print 'found:'\r\n    cell = [w for w in myfi if w.ssid==network]\r\n    print cell\r\n    if len(cell) == 0:\r\n        print \"SSID not found, reloading\"\r\n        exit()\r\n    cell = cell[0]  \r\n    scheme = Scheme.for_cell('wlan0', 'myNetwork', cell, passkey)\r\n    try: \r\n        scheme.save()\r\n    except Exception as e:\r\n        print e\r\n    print \"attempting to connect to\", cell.ssid\r\n    scheme.activate()            \r\n    server.socket.close()\r\n```"}}
{"actor":{"display_login":"N2ITN"}}