Skip to content

Instantly share code, notes, and snippets.

@cmoulliard
Created June 24, 2014 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmoulliard/17eba8ed42b81afb064d to your computer and use it in GitHub Desktop.
Save cmoulliard/17eba8ed42b81afb064d to your computer and use it in GitHub Desktop.
https://gist.github.com/anonymous/0d1759adad6c58602ddf
@cmoulliard
Copy link
Author

random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
rfkill: initial event: idx=1 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
rfkill: initial event: idx=7 type=2 op=0 soft=0 hard=0
rfkill: initial event: idx=9 type=1 op=0 soft=0 hard=0
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: Using driver-based off-channel TX
nl80211: interface wlp0s20u2 in phy phy6
nl80211: Set mode ifindex 9 iftype 3 (AP)
nl80211: Setup AP(wlp0s20u2) - device_ap_sme=1 use_monitor=1
nl80211: Enable Probe Request reporting nl_preq=0x6e64d0
nl80211: Register frame type=0x40 nl_handle=0x6e64d0 match=
nl80211: Add own interface ifindex 9
nl80211: if_indices[16]: 9
phy: phy6
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
wlp0s20u2: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code 00, new country code BE
Continue interface setup after channel list update
ctrl_iface not configured!
random: Got 20/20 bytes from /dev/random
Channel list update timeout - try to continue anyway
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 @ 160 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=2 chan=48 freq=5240 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
hw vht capab: 0x0, conf vht capab: 0x0
DFS support is enabled
Completing interface initialization
Mode: IEEE 802.11a Channel: 48 Frequency: 5240 MHz
DFS chan_idx seems wrong; num-ch: 37 ch-no: -6 conf-ch-no: 48 11n: 1 sec-ch: 0 vht-oper-width: 1
Available channel: 34
Available channel: 36
Available channel: 38
Available channel: 40
Available channel: 42
Available channel: 44
Available channel: 46
Available channel: 48
Available channel: 52
Available channel: 56
Available channel: 60
Available channel: 64
Available channel: 100
Available channel: 104
Available channel: 108
Available channel: 112
Available channel: 116
Available channel: 120
Available channel: 124
Available channel: 128
Available channel: 132
Available channel: 136
Available channel: 140
Available channel: 149
Available channel: 153
Available channel: 157
Available channel: 161
Available channel: 165
Available channel: 0
Available channel: 30208
Available channel: 0
Available channel: 0
Available channel: 0
Available channel: 0
Available channel: 0
Available channel: 0
Available channel: 0
Interface initialization failed
wlp0s20u2: interface state COUNTRY_UPDATE->DISABLED
wlp0s20u2: AP-DISABLED
hostapd_interface_deinit_free(0x6e47f0)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x6e47f0)
hostapd_bss_deinit: deinit bss wlp0s20u2
wlp0s20u2: Deauthenticate all stations
nl80211: sta_remove -> DEL_STATION wlp0s20u2 ff:ff:ff:ff:ff:ff --> -22 (Invalid argument)
hostapd_cleanup(hapd=0x6e5a20 (wlp0s20u2))
hostapd_free_hapd_data: Interface wlp0s20u2 wasn't started
hostapd_interface_deinit_free: driver=0x47b960 drv_priv=0x6e6850 -> hapd_deinit
nl80211: Skip disabling of Probe Request reporting nl_preq=0x8888888888e6ec59 while in AP mode
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=9)
netlink: Operstate: ifindex=9 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 9 iftype 2 (STATION)
nl80211: Teardown AP(wlp0s20u2) - device_ap_sme=1 use_monitor=1
nl80211: Disable Probe Request reporting nl_preq=0x8888888888e6ec59
hostapd_interface_free(0x6e47f0)
hostapd_interface_free: free hapd 0x6e5a20
hostapd_cleanup_iface(0x6e47f0)
hostapd_cleanup_iface_partial(0x6e47f0)
hostapd_cleanup_iface: free iface=0x6e47f0

@cmoulliard
Copy link
Author

# Basic configuration

interface=wlp0s20u2
driver=nl80211

### IEEE 802.11
ssid=fuselab
hw_mode=a
# channel=11
channel=48
# channel=64
# channel=0

# WPA and WPA2 configuration
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=fuselab987
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

### DFS
ieee80211h=1
ieee80211d=1
country_code=BE

# WMM
wme_enabled=1

### IEEE 802.11n
ieee80211n=1
ht_capab=[HT20][HT40]

### IEEE 802.11ac
ieee80211ac=1
vht_oper_chwidth=1

@cmoulliard
Copy link
Author

iw list

dabou@localhost Temp$ iw list
Wiphy phy6
    max # scan SSIDs: 9
    max scan IEs length: 2304 bytes
    Coverage class: 0 (up to 0m)
    Supported Ciphers:
        * WEP40 (00-0f-ac:1)
        * WEP104 (00-0f-ac:5)
        * TKIP (00-0f-ac:2)
        * CCMP (00-0f-ac:4)
    Available Antennas: TX 0 RX 0
    Supported interface modes:
         * IBSS
         * managed
         * AP
         * monitor
         * P2P-client
         * P2P-GO
    Band 1:
        Capabilities: 0x1862
            HT20/HT40
            Static SM Power Save
            RX HT20 SGI
            RX HT40 SGI
            No RX STBC
            Max AMSDU length: 7935 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 16 usec (0x07)
        HT TX/RX MCS rate indexes supported: 0-15, 32
        Bitrates (non-HT):
            * 1.0 Mbps
            * 2.0 Mbps
            * 5.5 Mbps
            * 11.0 Mbps
            * 6.0 Mbps
            * 9.0 Mbps
            * 12.0 Mbps
            * 18.0 Mbps
            * 24.0 Mbps
            * 36.0 Mbps
            * 48.0 Mbps
            * 54.0 Mbps
        Frequencies:
            * 2412 MHz [1] (20.0 dBm)
            * 2417 MHz [2] (20.0 dBm)
            * 2422 MHz [3] (20.0 dBm)
            * 2427 MHz [4] (20.0 dBm)
            * 2432 MHz [5] (20.0 dBm)
            * 2437 MHz [6] (20.0 dBm)
            * 2442 MHz [7] (20.0 dBm)
            * 2447 MHz [8] (20.0 dBm)
            * 2452 MHz [9] (20.0 dBm)
            * 2457 MHz [10] (20.0 dBm)
            * 2462 MHz [11] (20.0 dBm)
            * 2467 MHz [12] (20.0 dBm) (passive scanning, no IBSS)
            * 2472 MHz [13] (20.0 dBm) (passive scanning, no IBSS)
            * 2484 MHz [14] (20.0 dBm) (passive scanning, no IBSS)
    Band 2:
        Capabilities: 0x1862
            HT20/HT40
            Static SM Power Save
            RX HT20 SGI
            RX HT40 SGI
            No RX STBC
            Max AMSDU length: 7935 bytes
            DSSS/CCK HT40
        Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
        Minimum RX AMPDU time spacing: 16 usec (0x07)
        HT TX/RX MCS rate indexes supported: 0-15, 32
        Bitrates (non-HT):
            * 6.0 Mbps
            * 9.0 Mbps
            * 12.0 Mbps
            * 18.0 Mbps
            * 24.0 Mbps
            * 36.0 Mbps
            * 48.0 Mbps
            * 54.0 Mbps
        Frequencies:
            * 5170 MHz [34] (disabled)
            * 5180 MHz [36] (20.0 dBm) (passive scanning, no IBSS)
            * 5190 MHz [38] (20.0 dBm) (passive scanning, no IBSS)
            * 5200 MHz [40] (20.0 dBm) (passive scanning, no IBSS)
            * 5210 MHz [42] (20.0 dBm) (passive scanning, no IBSS)
            * 5220 MHz [44] (20.0 dBm) (passive scanning, no IBSS)
            * 5230 MHz [46] (20.0 dBm) (passive scanning, no IBSS)
            * 5240 MHz [48] (20.0 dBm)
            * 5260 MHz [52] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5280 MHz [56] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5300 MHz [60] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5320 MHz [64] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5500 MHz [100] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5520 MHz [104] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5540 MHz [108] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5560 MHz [112] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5580 MHz [116] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5600 MHz [120] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5620 MHz [124] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5640 MHz [128] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5660 MHz [132] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5680 MHz [136] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5700 MHz [140] (20.0 dBm) (passive scanning, no IBSS, radar detection)
              DFS state: usable (for 1907 sec)
            * 5745 MHz [149] (disabled)
            * 5765 MHz [153] (disabled)
            * 5785 MHz [157] (disabled)
            * 5805 MHz [161] (disabled)
            * 5825 MHz [165] (disabled)
            * 5920 MHz [184] (disabled)
            * 5940 MHz [188] (disabled)
            * 5960 MHz [192] (disabled)
            * 5980 MHz [196] (disabled)
            * 6000 MHz [200] (disabled)
            * 6020 MHz [204] (disabled)
            * 6040 MHz [208] (disabled)
            * 6060 MHz [212] (disabled)
            * 6080 MHz [216] (disabled)
    Supported commands:
         * new_interface
         * set_interface
         * new_key
         * start_ap
         * new_station
         * set_bss
         * join_ibss
         * set_pmksa
         * del_pmksa
         * flush_pmksa
         * remain_on_channel
         * frame
         * set_channel
         * connect
         * disconnect
    Supported TX frame types:
         * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
         * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
    Supported RX frame types:
         * IBSS: 0xd0
         * managed: 0x40 0xd0
         * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
         * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
         * P2P-client: 0x40 0xd0
         * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
    software interface modes (can always be added):
         * monitor
    interface combinations are not supported
    Device supports scan flush.

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