{"id":2688,"date":"2014-07-26T06:56:25","date_gmt":"2014-07-26T06:56:25","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=2688"},"modified":"2014-08-26T08:16:12","modified_gmt":"2014-08-26T08:16:12","slug":"iw-show-manipulate-wireless-devices-and-their-configuration","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=2688","title":{"rendered":"Linux as a Wireless Access Point (WAP)"},"content":{"rendered":"<p><a href=\"http:\/\/forum.ubuntuusers.de\/topic\/madwifi-treiber-installieren-2\/2\/#post-4876767\">WLAN Accesspoint einrichten<\/a><br \/>\n<a href=\"http:\/\/wiki.ubuntuusers.de\/WLAN_Router\">WLAN Router<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsudo nmcli nm wifi off\r\nsudo rfkill unblock wlan\r\n<\/pre>\n<p><a href=\"http:\/\/wireless.kernel.org\/en\/users\/Documentation\/hostapd\">hostapd Linux documentation page<\/a><br \/>\n<a href=\"http:\/\/nims11.wordpress.com\/2012\/04\/27\/hostapd-the-linux-way-to-create-virtual-wifi-access-point\/\">Hostapd : The Linux Way to create Virtual Wifi Access Point<\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/472794\/hostapd-error-nl80211-could-not-configure-driver-mode?rq=1\">hostapd error \u201cnl80211: Could not configure driver mode\u201d<\/a><br \/>\n<a href=\"https:\/\/bbs.archlinux.org\/viewtopic.php?id=135974\">Can&#8217;t connect to my access point<\/a><br \/>\n<a href=\"https:\/\/forum.pfsense.org\/index.php?topic=58187.0\">&#8220;WPA: EAPOL-Key timeout&#8221; for certain devices<\/a><br \/>\n<a href=\"serverfault.com\/questions\/539807\/hostapd-rtl8192se-and-wpa-not-working-eapol-key-timeouat\">hostapd, rtl8192se and wpa not working: EAPOL-Key Timeout<\/a><br \/>\n<a href=\"http:\/\/www.gentooforum.de\/artikel\/18664\/wlan-ap-geht-wieder-nicht.html\">WLAN AP Geht wieder nicht<\/a><br \/>\n<a href=\"http:\/\/www.linuxquestions.org\/questions\/linux-networking-3\/wifi-problem-870631\/\">Wifi Problem<\/a><br \/>\n<a href=\"http:\/\/comments.gmane.org\/gmane.linux.drivers.hostap\/30179\">WPA\/WPA2 Authentication failure &#8211; EAPOL-Key timeout<\/a><\/p>\n<pre class=\"brush: plain; title: hostapd.log; notranslate\" title=\"hostapd.log\">\r\nnl80211: New station f8:01:13:05:ef:1f\r\nwlan0: Event EAPOL_TX_STATUS (40) received\r\nIEEE 802.1X: f8:01:13:05:ef:1f TX status - version=2 type=3 length=95 - ack=1\r\nWPA: EAPOL-Key TX status for STA f8:01:13:05:ef:1f ack=1\r\nWPA: Increase initial EAPOL-Key 1\/4 timeout by 1000 ms because of acknowledged frame\r\nwlan0: STA f8:01:13:05:ef:1f WPA: EAPOL-Key timeout\r\nWPA: f8:01:13:05:ef:1f WPA_PTK entering state PTKSTART\r\nwlan0: STA f8:01:13:05:ef:1f WPA: sending 1\/4 msg of 4-Way Handshake\r\nWPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=1 kde_len=0 keyidx=0 encr=0)\r\nWPA: Use EAPOL-Key timeout of 1000 ms (retry counter 2)\r\n<\/pre>\n<pre class=\"brush: plain; title: \/etc\/default\/hostapd; notranslate\" title=\"\/etc\/default\/hostapd\">\r\n### Wireless network name ###\r\ninterface=wlan0\r\n### Set your bridge name ###\r\nbridge=br0\r\n\r\n#driver=iwlwifi\r\ncountry_code=UA\r\nssid=BACHI.NET Wireless\r\nchannel=6\r\nhw_mode=g\r\n\r\nieee80211d=1\r\nieee80211n=1\r\nwmm_enabled=1\r\n\r\nmacaddr_acl=0\r\nauth_algs=1\r\nignore_broadcast_ssid=0\r\nwpa=3\r\nwpa_passphrase=**********\r\nwpa_key_mgmt=WPA-PSK\r\nwpa_pairwise=TKIP\r\nrsn_pairwise=CCMP\r\n<\/pre>\n<pre class=\"brush: plain; title: iw list; notranslate\" title=\"iw list\">\r\nandreas@samsung-notebook:~$ iw list\r\nWiphy phy0\r\n\tBand 1:\r\n\t\tCapabilities: 0x1072\r\n\t\t\tHT20\/HT40\r\n\t\t\tStatic SM Power Save\r\n\t\t\tRX Greenfield\r\n\t\t\tRX HT20 SGI\r\n\t\t\tRX HT40 SGI\r\n\t\t\tNo RX STBC\r\n\t\t\tMax AMSDU length: 3839 bytes\r\n\t\t\tDSSS\/CCK HT40\r\n\t\tMaximum RX AMPDU length 65535 bytes (exponent: 0x003)\r\n\t\tMinimum RX AMPDU time spacing: 4 usec (0x05)\r\n\t\tHT TX\/RX MCS rate indexes supported: 0-7, 32\r\n\t\tFrequencies:\r\n\t\t\t* 2412 MHz &#x5B;1] (15.0 dBm)\r\n\t\t\t* 2417 MHz &#x5B;2] (15.0 dBm)\r\n\t\t\t* 2422 MHz &#x5B;3] (15.0 dBm)\r\n\t\t\t* 2427 MHz &#x5B;4] (15.0 dBm)\r\n\t\t\t* 2432 MHz &#x5B;5] (15.0 dBm)\r\n\t\t\t* 2437 MHz &#x5B;6] (15.0 dBm)\r\n\t\t\t* 2442 MHz &#x5B;7] (15.0 dBm)\r\n\t\t\t* 2447 MHz &#x5B;8] (15.0 dBm)\r\n\t\t\t* 2452 MHz &#x5B;9] (15.0 dBm)\r\n\t\t\t* 2457 MHz &#x5B;10] (15.0 dBm)\r\n\t\t\t* 2462 MHz &#x5B;11] (15.0 dBm)\r\n\t\t\t* 2467 MHz &#x5B;12] (15.0 dBm) (passive scanning, no IBSS)\r\n\t\t\t* 2472 MHz &#x5B;13] (15.0 dBm) (passive scanning, no IBSS)\r\n\t\tBitrates (non-HT):\r\n\t\t\t* 1.0 Mbps\r\n\t\t\t* 2.0 Mbps (short preamble supported)\r\n\t\t\t* 5.5 Mbps (short preamble supported)\r\n\t\t\t* 11.0 Mbps (short preamble supported)\r\n\t\t\t* 6.0 Mbps\r\n\t\t\t* 9.0 Mbps\r\n\t\t\t* 12.0 Mbps\r\n\t\t\t* 18.0 Mbps\r\n\t\t\t* 24.0 Mbps\r\n\t\t\t* 36.0 Mbps\r\n\t\t\t* 48.0 Mbps\r\n\t\t\t* 54.0 Mbps\r\n\tmax # scan SSIDs: 20\r\n\tmax scan IEs length: 195 bytes\r\n\tCoverage class: 0 (up to 0m)\r\n\tSupported Ciphers:\r\n\t\t* WEP40 (00-0f-ac:1)\r\n\t\t* WEP104 (00-0f-ac:5)\r\n\t\t* TKIP (00-0f-ac:2)\r\n\t\t* CCMP (00-0f-ac:4)\r\n\tAvailable Antennas: TX 0 RX 0\r\n\tSupported interface modes:\r\n\t\t * IBSS\r\n\t\t * managed\r\n\t\t * AP\r\n\t\t * AP\/VLAN\r\n\t\t * monitor\r\n\tsoftware interface modes (can always be added):\r\n\t\t * AP\/VLAN\r\n\t\t * monitor\r\n\tvalid interface combinations:\r\n\t\t * #{ managed } &lt;= 1, #{ AP } &lt;= 1,\r\n\t\t   total &lt;= 2, #channels &lt;= 1, STA\/AP BI must match\r\n\t\t * #{ managed } &lt;= 2,\r\n\t\t   total &lt;= 2, #channels &lt;= 1\r\n\tSupported commands:\r\n\t\t * new_interface\r\n\t\t * set_interface\r\n\t\t * new_key\r\n\t\t * new_beacon\r\n\t\t * new_station\r\n\t\t * new_mpath\r\n\t\t * set_mesh_params\r\n\t\t * set_bss\r\n\t\t * authenticate\r\n\t\t * associate\r\n\t\t * deauthenticate\r\n\t\t * disassociate\r\n\t\t * join_ibss\r\n\t\t * join_mesh\r\n\t\t * set_tx_bitrate_mask\r\n\t\t * action\r\n\t\t * frame_wait_cancel\r\n\t\t * set_wiphy_netns\r\n\t\t * set_channel\r\n\t\t * set_wds_peer\r\n\t\t * Unknown command (84)\r\n\t\t * Unknown command (87)\r\n\t\t * Unknown command (85)\r\n\t\t * Unknown command (89)\r\n\t\t * Unknown command (92)\r\n\t\t * connect\r\n\t\t * disconnect\r\n\tSupported TX frame types:\r\n\t\t * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * AP\/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\t\t * Unknown mode (10): 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0\r\n\tSupported RX frame types:\r\n\t\t * IBSS: 0x40 0xb0 0xc0 0xd0\r\n\t\t * managed: 0x40 0xd0\r\n\t\t * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0\r\n\t\t * AP\/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0\r\n\t\t * mesh point: 0xb0 0xc0 0xd0\r\n\t\t * P2P-client: 0x40 0xd0\r\n\t\t * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0\r\n\t\t * Unknown mode (10): 0x40 0xd0\r\n\tDevice supports RSN-IBSS.\r\n\tWoWLAN support:\r\n\t\t * wake up on disconnect\r\n\t\t * wake up on magic packet\r\n\t\t * wake up on pattern match, up to 20 patterns of 16-128 bytes\r\n\t\t * can do GTK rekeying\r\n\t\t * wake up on GTK rekey failure\r\n\t\t * wake up on EAP identity request\r\n\t\t * wake up on rfkill release\r\n\tHT Capability overrides:\r\n\t\t * MCS: ff ff ff ff ff ff ff ff ff ff\r\n\t\t * maximum A-MSDU length\r\n\t\t * supported channel width\r\n\t\t * short GI for 40 MHz\r\n\t\t * max A-MPDU length exponent\r\n\t\t * min MPDU start spacing\r\n\tDevice supports TX status socket option.\r\n\tDevice supports HT-IBSS.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WLAN Accesspoint einrichten WLAN Router sudo nmcli nm wifi off sudo rfkill unblock wlan hostapd Linux documentation page Hostapd : The Linux Way to create Virtual Wifi Access Point hostapd error \u201cnl80211: Could not configure driver mode\u201d Can&#8217;t connect to my access point &#8220;WPA: EAPOL-Key timeout&#8221; for certain devices hostapd, rtl8192se and wpa not working: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2688","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2688"}],"version-history":[{"count":12,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2688\/revisions"}],"predecessor-version":[{"id":2805,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/2688\/revisions\/2805"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}