aircrack-ng / rtl8812au

RTL8812AU/21AU and RTL8814AU driver with monitor mode and frame injection
GNU General Public License v2.0
3.5k stars 767 forks source link

Any solution about IBSS mode? #1158

Open tallorate opened 4 months ago

tallorate commented 4 months ago

Hi, I've successfully compiled the driver and installed into my linux-4.10.2 . Following are the info of iw list ` Wiphy phy0

max # scan SSIDs: 9

max scan IEs length: 2304 bytes
Retry short limit: 7
Retry long limit: 4
Coverage class: 0 (up to 0m)
Device supports RSN-IBSS.
Device supports T-DLS.
Supported Ciphers:
    * WEP40 (00-0f-ac:1)
    * WEP104 (00-0f-ac:5)
    * TKIP (00-0f-ac:2)
    * CCMP (00-0f-ac:4)
    * CMAC (00-0f-ac:6)
Available Antennas: TX 0 RX 0
Supported interface modes:
     * IBSS
     * managed
     * AP
     * monitor
     * mesh point
     * P2P-client
     * P2P-GO
Band 1:
    Capabilities: 0x1962
        HT20/HT40
        Static SM Power Save
        RX HT20 SGI
        RX HT40 SGI
        RX STBC 1-stream
        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
    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] (17.0 dBm)
        * 2417 MHz [2] (17.0 dBm)
        * 2422 MHz [3] (17.0 dBm)
        * 2427 MHz [4] (17.0 dBm)
        * 2432 MHz [5] (17.0 dBm)
        * 2437 MHz [6] (17.0 dBm)
        * 2442 MHz [7] (17.0 dBm)
        * 2447 MHz [8] (17.0 dBm)
        * 2452 MHz [9] (17.0 dBm)
        * 2457 MHz [10] (17.0 dBm)
        * 2462 MHz [11] (17.0 dBm)
        * 2467 MHz [12] (17.0 dBm) (no IR)
        * 2472 MHz [13] (17.0 dBm) (no IR)
        * 2484 MHz [14] (disabled)
Band 2:
    Capabilities: 0x862
        HT20/HT40
        Static SM Power Save
        RX HT20 SGI
        RX HT40 SGI
        No RX STBC
        Max AMSDU length: 7935 bytes
        No 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
    VHT Capabilities (0x03c031a2):
        Max MPDU length: 11454
        Supported Channel Width: neither 160 nor 80+80
        short GI (80 MHz)
        TX STBC
        SU Beamformee
        +HTC-VHT
    VHT RX MCS set:
        1 streams: MCS 0-9
        2 streams: MCS 0-9
        3 streams: not supported
        4 streams: not supported
        5 streams: not supported
        6 streams: not supported
        7 streams: not supported
        8 streams: not supported
    VHT RX highest supported: 867 Mbps
    VHT TX MCS set:
        1 streams: MCS 0-9
        2 streams: MCS 0-9
        3 streams: not supported
        4 streams: not supported
        5 streams: not supported
        6 streams: not supported
        7 streams: not supported
        8 streams: not supported
    VHT TX highest supported: 867 Mbps
    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:
        * 5180 MHz [36] (16.0 dBm)
        * 5200 MHz [40] (16.0 dBm)
        * 5220 MHz [44] (16.0 dBm)
        * 5240 MHz [48] (16.0 dBm)
        * 5260 MHz [52] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5280 MHz [56] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5300 MHz [60] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5320 MHz [64] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5500 MHz [100] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5520 MHz [104] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5540 MHz [108] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5560 MHz [112] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5580 MHz [116] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5600 MHz [120] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5620 MHz [124] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5640 MHz [128] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5660 MHz [132] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5680 MHz [136] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5700 MHz [140] (16.0 dBm) (radar detection)
          DFS state: usable (for 3524 sec)
          DFS CAC time: 60000 ms
        * 5720 MHz [144] (disabled)
        * 5745 MHz [149] (16.0 dBm)
        * 5765 MHz [153] (16.0 dBm)
        * 5785 MHz [157] (16.0 dBm)
        * 5805 MHz [161] (16.0 dBm)
        * 5825 MHz [165] (16.0 dBm)
        * 5845 MHz [169] (disabled)
        * 5865 MHz [173] (disabled)
        * 5885 MHz [177] (disabled)
Supported commands:
     * new_interface
     * set_interface
     * new_key
     * start_ap
     * new_station
     * new_mpath
     * set_mesh_config
     * set_bss
     * join_ibss
     * join_mesh
     * set_pmksa
     * del_pmksa
     * flush_pmksa
     * remain_on_channel
     * frame
     * set_channel
     * tdls_mgmt
     * tdls_oper
     * 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
     * mesh point: 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 0xb0 0xd0
     * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
     * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
     * mesh point: 0xb0 0xd0
     * P2P-client: 0x40 0xd0
     * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
WoWLAN support:
     * wake up on anything (device continues operating normally)
software interface modes (can always be added):
     * monitor
interface combinations are not supported
Device supports SAE with AUTHENTICATE command
Device supports scan flush.
Driver supports a userspace MPM

`

As you see, the supported modes include the IBSS mod.But when I use the iw tool to create a IBSS network:

root@cly-virtual-machine:/home/cly# ifconfig wlan0 down root@cly-virtual-machine:/home/cly# iw dev wlan0 set type ibss root@cly-virtual-machine:/home/cly# ifconfig wlan0 up root@cly-virtual-machine:/home/cly# iw dev wlan0 ibss join myadhoc 2437 root@cly-virtual-machine:/home/cly# ip addr add 192.168.2.1/24 dev wlan0`

It turns out that I created a ibss network and there is one device in it.

root@cly-virtual-machine:/home/cly# iw dev wlan0 link Joined IBSS 02:11:87:86:a3:0f (on wlan0) SSID: myadhoc freq: 2437 root@cly-virtual-machine:/home/cly# iwconfig wlan0 wlan0 IEEE 802.11bg ESSID:"myadhoc" Nickname:"WIFI@REALTEK" Mode:Ad-Hoc Frequency:2.437 GHz Cell: 02:11:87:86:A3:0F
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=1/100 Signal level=1/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0

But when I add another device into this network.It turns out that the device shows the same information but they cannot ping through each other.I doubt whether they didn't get into the same ibss network. Any idea on how to solve this ?