Search Linux Wireless

Re: [PATCH 1/3] wifi: rtlwifi: Move code from rtl8192de to rtl8192d-common

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On 2024-09-16, Ping-Ke Shih wrote:
> Stefan Lippers-Hollmann <s.l-h@xxxxxx> wrote:
> > On 2024-03-13, Ping-Ke Shih wrote:
> > > On Wed, 2024-03-13 at 06:49 +0100, Stefan Lippers-Hollmann wrote:
> > > > On 2024-03-13, Bitterblue Smith wrote:
> > > > > Create the new module rtl8192d-common and move some code into it from
> > > > > rtl8192de. Now the rtl8192de driver (PCI) and the new rtl8192du driver
> > > > > (USB) can share some of the code.
> > [...]
> > > > Using the firmware from https://github.com/lwfinger/rtl8192du/,
> > > > it would be great if someone could publish the necessary firmware
> > > > to linux-firmware.
> > > >
> > > > MD5:
> > > > abccba1e9bb456eb81dfc88502a56300  /lib/firmware/rtlwifi/rtl8192dufw.bin
> 
> I found its version is 38 that is little bit older than [1] (version 39). 
> Bitterblue has made a binary from [1] and I have verified the binary. 
> I will send this firmware days later because my previous firmware is
> still under review. 

[...]

> [1] https://github.com/lwfinger/rtl8192du/blob/master/hal/Hal8192DUHWImg.c

Great, just a quick functionality check with this firmware (v39):

MD5:
18eb8791673dcc38b268ad19c92ba6a2 */lib/firmware/rtlwifi/rtl8192dufw.bin

SHA256:
710c4a28904b180e5a316a372e1038972102b2545909bc117c2455cf536e4490 */lib/firmware/rtlwifi/rtl8192dufw.bin

Connects and works fine with kernel v6.11, using WPA3SAE over 5 GHz.

[  202.941904] usb 3-5: new high-speed USB device number 5 using xhci_hcd
[  203.070437] usb 3-5: New USB device found, idVendor=0bda, idProduct=8194, bcdDevice= 0.00
[  203.070453] usb 3-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  203.070460] usb 3-5: Product: 802.11n NIC
[  203.070464] usb 3-5: Manufacturer: Realtek
[  203.070468] usb 3-5: SerialNumber: 00e04c000001
[  203.220236] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[  203.220248] rtl8192du: Driver for Realtek RTL8192DU WLAN interface
[  203.220249] rtl8192du: Loading firmware file rtlwifi/rtl8192dufw.bin
[  203.220324] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[  203.220648] usbcore: registered new interface driver rtl8192du
[  203.227708] rtl8192du 3-5:1.0 wlxXXXlocalMACXXX: renamed from wlan0
[  230.852662] wlxXXXlocalMACXXX: authenticate with XXXAP1MACXXX (local address=XXXlocalMACXXX)
[  230.852670] wlxXXXlocalMACXXX: send auth to XXXAP1MACXXX (try 1/3)
[  230.870370] wlxXXXlocalMACXXX: authenticate with XXXAP1MACXXX (local address=XXXlocalMACXXX)
[  230.870381] wlxXXXlocalMACXXX: send auth to XXXAP1MACXXX (try 1/3)
[  230.873195] wlxXXXlocalMACXXX: authenticated
[  230.874472] wlxXXXlocalMACXXX: associate with XXXAP1MACXXX (try 1/3)
[  230.885511] wlxXXXlocalMACXXX: RX AssocResp from XXXAP1MACXXX (capab=0x1511 status=0 aid=2)
[  230.887245] wlxXXXlocalMACXXX: associated
[  230.897180] wlxXXXlocalMACXXX: Limiting TX power to 23 (23 - 0) dBm as advertised by XXXAP1MACXXX
[  240.889472] wlxXXXlocalMACXXX: deauthenticating from XXXAP1MACXXX by local choice (Reason: 3=DEAUTH_LEAVING)
[  244.386457] wlxXXXlocalMACXXX: authenticate with XXXAP2MACXXX (local address=XXXlocalMACXXX)
[  244.386470] wlxXXXlocalMACXXX: send auth to XXXAP2MACXXX (try 1/3)
[  244.397502] wlxXXXlocalMACXXX: authenticate with XXXAP2MACXXX (local address=XXXlocalMACXXX)
[  244.397515] wlxXXXlocalMACXXX: send auth to XXXAP2MACXXX (try 1/3)
[  244.399226] wlxXXXlocalMACXXX: authenticated
[  244.400306] wlxXXXlocalMACXXX: associate with XXXAP2MACXXX (try 1/3)
[  244.407420] wlxXXXlocalMACXXX: RX AssocResp from XXXAP2MACXXX (capab=0x1511 status=0 aid=3)
[  244.408977] wlxXXXlocalMACXXX: associated
[  244.461286] wlxXXXlocalMACXXX: Limiting TX power to 23 (23 - 0) dBm as advertised by XXXAP2MACXXX

(there is AP-side active bandsteering/ roaming at play)

# wpa_cli -i wlxXXXlocalMACXXX status
bssid=XXXAP2MACXXX
freq=5260
ssid=XXX
id=4
id_str=XXX
mode=station
wifi_generation=4
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=SAE
pmf=2
mgmt_group_cipher=BIP
sae_group=19
sae_h2e=0
sae_pk=0
wpa_state=COMPLETED
p2p_device_address=XXXlocalMACXXX
address=XXXlocalMACXXX
uuid=XXXUUIDXXX

$ iperf3 -c XXXremoteIPv6XXX
Connecting to host XXXremoteIPv6XXX, port 5201
[  5] local XXXlocalXXX port 45116 connected to XXXremoteIPv6XXX port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  13.9 MBytes   116 Mbits/sec    0    441 KBytes       
[  5]   1.00-2.00   sec  12.1 MBytes   102 Mbits/sec    0    471 KBytes       
[  5]   2.00-3.00   sec  11.4 MBytes  95.4 Mbits/sec    0    471 KBytes       
[  5]   3.00-4.00   sec  12.5 MBytes   105 Mbits/sec    0    604 KBytes       
[  5]   4.00-5.00   sec  11.1 MBytes  93.3 Mbits/sec    0    604 KBytes       
[  5]   5.00-6.00   sec  11.4 MBytes  95.4 Mbits/sec    0    604 KBytes       
[  5]   6.00-7.00   sec  11.9 MBytes  99.6 Mbits/sec    0    637 KBytes       
[  5]   7.00-8.00   sec  10.8 MBytes  90.2 Mbits/sec    0    637 KBytes       
[  5]   8.00-9.00   sec  11.8 MBytes  98.6 Mbits/sec    0    637 KBytes       
[  5]   9.00-10.00  sec  12.0 MBytes   101 Mbits/sec    0    722 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   119 MBytes  99.6 Mbits/sec    0             sender
[  5]   0.00-10.02  sec   116 MBytes  97.2 Mbits/sec                  receiver

iperf Done.

$ iperf3 -c XXXremoteIPv6XXX --reverse
Connecting to host XXXremoteIPv6XXX, port 5201
Reverse mode, remote host XXXremoteIPv6XXX is sending
[  5] local XXXlocalXXX port 58256 connected to XXXremoteIPv6XXX port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  12.6 MBytes   106 Mbits/sec                  
[  5]   1.00-2.00   sec  13.6 MBytes   114 Mbits/sec                  
[  5]   2.00-3.00   sec  14.1 MBytes   118 Mbits/sec                  
[  5]   3.00-4.00   sec  14.0 MBytes   117 Mbits/sec                  
[  5]   4.00-5.00   sec  12.2 MBytes   103 Mbits/sec                  
[  5]   5.00-6.00   sec  14.2 MBytes   120 Mbits/sec                  
[  5]   6.00-7.00   sec  12.5 MBytes   105 Mbits/sec                  
[  5]   7.00-8.00   sec  12.5 MBytes   105 Mbits/sec                  
[  5]   8.00-9.00   sec  13.9 MBytes   116 Mbits/sec                  
[  5]   9.00-10.00  sec  14.1 MBytes   118 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec   138 MBytes   116 Mbits/sec    0             sender
[  5]   0.00-10.00  sec   134 MBytes   112 Mbits/sec                  receiver

iperf Done.

$ iperf3 -c XXXremoteIPv6XXX --bidir
Connecting to host XXXremoteIPv6XXX, port 5201
[  5] local XXXlocalXXX port 50634 connected to XXXremoteIPv6XXX port 5201
[  7] local XXXlocalXXX port 50646 connected to XXXremoteIPv6XXX port 5201
[ ID][Role] Interval           Transfer     Bitrate         Retr  Cwnd
[  5][TX-C]   0.00-1.00   sec  6.25 MBytes  52.4 Mbits/sec    0    300 KBytes       
[  7][RX-C]   0.00-1.00   sec  7.00 MBytes  58.7 Mbits/sec                  
[  5][TX-C]   1.00-2.00   sec  3.88 MBytes  32.5 Mbits/sec    0    414 KBytes       
[  7][RX-C]   1.00-2.00   sec  10.1 MBytes  84.9 Mbits/sec                  
[  5][TX-C]   2.00-3.00   sec  1.88 MBytes  15.7 Mbits/sec    0    464 KBytes       
[  7][RX-C]   2.00-3.00   sec  12.4 MBytes   104 Mbits/sec                  
[  5][TX-C]   3.00-4.00   sec  1.88 MBytes  15.7 Mbits/sec    0    487 KBytes       
[  7][RX-C]   3.00-4.00   sec  12.2 MBytes   103 Mbits/sec                  
[  5][TX-C]   4.00-5.00   sec  2.38 MBytes  19.9 Mbits/sec    0    582 KBytes       
[  7][RX-C]   4.00-5.00   sec  10.9 MBytes  91.2 Mbits/sec                  
[  5][TX-C]   5.00-6.00   sec  0.00 Bytes  0.00 bits/sec    0    602 KBytes       
[  7][RX-C]   5.00-6.00   sec  10.2 MBytes  86.0 Mbits/sec                  
[  5][TX-C]   6.00-7.00   sec  1.50 MBytes  12.6 Mbits/sec    0    661 KBytes       
[  7][RX-C]   6.00-7.00   sec  10.6 MBytes  89.1 Mbits/sec                  
[  5][TX-C]   7.00-8.00   sec  1.38 MBytes  11.5 Mbits/sec    0    728 KBytes       
[  7][RX-C]   7.00-8.00   sec  11.5 MBytes  96.5 Mbits/sec                  
[  5][TX-C]   8.00-9.00   sec  1.38 MBytes  11.5 Mbits/sec    0    777 KBytes       
[  7][RX-C]   8.00-9.00   sec  10.4 MBytes  87.0 Mbits/sec                  
[  5][TX-C]   9.00-10.00  sec  1.38 MBytes  11.5 Mbits/sec    2    593 KBytes       
[  7][RX-C]   9.00-10.00  sec  11.1 MBytes  93.1 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID][Role] Interval           Transfer     Bitrate         Retr
[  5][TX-C]   0.00-10.00  sec  21.9 MBytes  18.3 Mbits/sec    2             sender
[  5][TX-C]   0.00-10.02  sec  19.5 MBytes  16.3 Mbits/sec                  receiver
[  7][RX-C]   0.00-10.00  sec   110 MBytes  92.7 Mbits/sec    0             sender
[  7][RX-C]   0.00-10.02  sec   106 MBytes  89.2 Mbits/sec                  receiver

iperf Done.

# iw dev wlxXXXlocalMACXXX station dump
Station XXXAP2MACXXX (on wlxXXXlocalMACXXX)
        inactive time:  1 ms
        rx bytes:       819594565
        rx packets:     556734
        tx bytes:       379056249
        tx packets:     427613
        tx retries:     0
        tx failed:      0
        beacon loss:    0
        rx drop misc:   0
        signal:         10 dBm
        signal avg:     -66 dBm
        tx bitrate:     300.0 MBit/s MCS 15 40MHz short GI
        tx duration:    0 us
        rx bitrate:     243.0 MBit/s MCS 14 40MHz
        rx duration:    0 us
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       long
        WMM/WME:        yes
        MFP:            yes
        TDLS peer:      no
        DTIM period:    3
        beacon interval:100
        short slot time:yes
        connected time: 556 seconds
        associated at [boottime]:       244.363s
        associated at:  1726480574210 ms
        current time:   1726481129874 ms

# iw phy phy1 info
Wiphy phy1
        wiphy index: 1
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        RTS threshold: 2347
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP-128 (00-0f-ac:4)
                * CCMP-256 (00-0f-ac:10)
                * GCMP-128 (00-0f-ac:8)
                * GCMP-256 (00-0f-ac:9)
                * CMAC (00-0f-ac:6)
                * CMAC-256 (00-0f-ac:13)
                * GMAC-128 (00-0f-ac:11)
                * GMAC-256 (00-0f-ac:12)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x186e
                        HT20/HT40
                        SM Power Save disabled
                        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 Max RX data rate: 300 Mbps
                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.0 MHz [1] (20.0 dBm)
                        * 2417.0 MHz [2] (20.0 dBm)
                        * 2422.0 MHz [3] (20.0 dBm)
                        * 2427.0 MHz [4] (20.0 dBm)
                        * 2432.0 MHz [5] (20.0 dBm)
                        * 2437.0 MHz [6] (20.0 dBm)
                        * 2442.0 MHz [7] (20.0 dBm)
                        * 2447.0 MHz [8] (20.0 dBm)
                        * 2452.0 MHz [9] (20.0 dBm)
                        * 2457.0 MHz [10] (20.0 dBm)
                        * 2462.0 MHz [11] (20.0 dBm)
                        * 2467.0 MHz [12] (20.0 dBm)
                        * 2472.0 MHz [13] (20.0 dBm)
                        * 2484.0 MHz [14] (disabled)
        Band 2:
                Capabilities: 0x186e
                        HT20/HT40
                        SM Power Save disabled
                        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 Max RX data rate: 300 Mbps
                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:
                        * 5180.0 MHz [36] (23.0 dBm)
                        * 5200.0 MHz [40] (23.0 dBm)
                        * 5220.0 MHz [44] (23.0 dBm)
                        * 5240.0 MHz [48] (23.0 dBm)
                        * 5260.0 MHz [52] (20.0 dBm) (no IR, radar detection)
                        * 5280.0 MHz [56] (20.0 dBm) (no IR, radar detection)
                        * 5300.0 MHz [60] (20.0 dBm) (no IR, radar detection)
                        * 5320.0 MHz [64] (20.0 dBm) (no IR, radar detection)
                        * 5500.0 MHz [100] (26.0 dBm) (no IR, radar detection)
                        * 5520.0 MHz [104] (26.0 dBm) (no IR, radar detection)
                        * 5540.0 MHz [108] (26.0 dBm) (no IR, radar detection)
                        * 5560.0 MHz [112] (26.0 dBm) (no IR, radar detection)
                        * 5580.0 MHz [116] (26.0 dBm) (no IR, radar detection)
                        * 5600.0 MHz [120] (26.0 dBm) (no IR, radar detection)
                        * 5620.0 MHz [124] (26.0 dBm) (no IR, radar detection)
                        * 5640.0 MHz [128] (26.0 dBm) (no IR, radar detection)
                        * 5660.0 MHz [132] (26.0 dBm) (no IR, radar detection)
                        * 5680.0 MHz [136] (26.0 dBm) (no IR, radar detection)
                        * 5700.0 MHz [140] (26.0 dBm) (no IR, radar detection)
                        * 5745.0 MHz [149] (13.0 dBm)
                        * 5765.0 MHz [153] (13.0 dBm)
                        * 5785.0 MHz [157] (13.0 dBm)
                        * 5805.0 MHz [161] (13.0 dBm)
                        * 5825.0 MHz [165] (13.0 dBm)
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * new_mpath
                 * set_mesh_config
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * start_p2p_device
                 * set_mcast_rate
                 * testmode
                 * connect
                 * disconnect
                 * set_qos_map
                 * set_multicast_to_unicast
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        interface combinations are not supported
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports low priority scan.
        Device supports scan flush.
        Device supports AP scan.
        Device supports per-vif TX power setting
        Driver supports full state transitions for AP/GO clients
        Driver supports a userspace MPM
        Device supports configuring vdev MAC-addr on create.
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        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
                 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0x40 0xb0 0xc0 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 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-device: 0x40 0xd0
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
                * [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
                * [ SCAN_RANDOM_SN ]: use random sequence numbers in scans
                * [ SCAN_MIN_PREQ_CONTENT ]: use probe request with only rate IEs in scans
                * [ CONTROL_PORT_NO_PREAUTH ]: disable pre-auth over nl80211 control port support
                * [ DEL_IBSS_STA ]: deletion of IBSS station support
                * [ SCAN_FREQ_KHZ ]: scan on kHz frequency support
                * [ CONTROL_PORT_OVER_NL80211_TX_STATUS ]: tx status for nl80211 control port support
                * [ POWERED_ADDR_CHANGE ]: can change MAC address while up

Regards
	Stefan Lippers-Hollmann

Attachment: pgpM9oyPdzWSr.pgp
Description: Digitale Signatur von OpenPGP


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux