from 500mbit to 10mbit qca9880

I feel like maybe 802.11ac is disabled, and I cannot think of what I would have done to break it. Possibly due to upgrading? I have previously had throughput of 500mbit (yes, likely due to compression), and if I use the cable modem wifi, I get 500mbit via speedtest. So, what changed? Maybe I accidentally changed something. After 2 days of trying to get to show results above 10mbit, I am posting here. Does anyone perhaps have a hostapd.conf that has been proven to work at 802.11ac speeds?

wireless card: https://mikrotik.com/product/R11e-5HacT

based on feedback on the other thread:


 iwlist scanwlp6s0    Interface doesn't support scanning : Operation not supported
wlp1s0    Interface doesn't support scanning : Operation not supported

iw dev wlp6s0 link
Not connected.

iwlist scan
wlp6s0    Interface doesn't support scanning : Operation not supported
wlp1s0    Interface doesn't support scanning : Operation not supported

iwconfig wlp6s0 power off
Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlp6s0 ; Invalid argument.

iwconfig:


iwconfig wlp6s0
wlp6s0    IEEE 802.11  Mode:Master  Tx-Power=30 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

I am aware that power management is on, I would turn it off as per many websites recommending that, but nothing I have tried worked. Also tx-power of 30 is the top limit of what I should be doing.


 5.3.7-1-default #1 SMP Mon Nov 4 19:30:53 EST 2019 x86_64 x86_64 x86_64 GNU/Linuxath10k_pci 0000:06:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 19b6:d03

I noticed a similar issue in this thread: https://forums.opensuse.org/showthread.php/537435-Wifi-extremely-slow-on-WPA2-Personal-network-after-some-updates
The proposed fix of reinstall everything doesn’t work for me. It might in a few months, but this should not be the ‘go to’ problem solver.

hostapd.conf


### hostapd configuration file
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
interface=wlp6s0
driver=nl80211
bridge=br0

### IEEE 802.11
ssid=myssid
hw_mode=a
#chanlist=36 40 44 48 149 153 157 161 165
channel=149
max_num_sta=128
auth_algs=1

use_sta_nsts=0
acs_exclude_dfs=0
acs_num_scans=5
#vht_oper_centr_freq_seg0_idx=42
vht_oper_centr_freq_seg0_idx=155

### DFS
country_code=CA
ieee80211d=1
ieee80211h=1
local_pwr_constraint=0
spectrum_mgmt_required=1

### IEEE 802.11n
ieee80211n=1
ht_capab=[HT40+][LDPC][SHORT-GI-40][TX-STBC][RX-STBC1]
#[SHORT-GI-20][DSSS_CCK-40]


### IEEE 802.11ac
ieee80211ac=1
vht_oper_chwidth=1
vht_capab=[SHORT-GI-80][MAX-MPDU-11454][RXLDPC][MAX-A-MPDU-LEN-EXP7][TX-STBC-2BY1][RX-STBC-1][BF-ANTENNA-3][SOUNDING-DIMENSION-3][VHT-LINK-ADAPT3]

### IEEE 802.11i
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_passphrase=XXX
rsn_pairwise=CCMP

### hostapd event logger
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2

### WMM
wmm_enabled=1
uapsd_advertisement_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0

### TX queue parameters
tx_queue_data3_aifs=7
tx_queue_data3_cwmin=15
tx_queue_data3_cwmax=1023
tx_queue_data3_burst=0
tx_queue_data2_aifs=3
tx_queue_data2_cwmin=15
tx_queue_data2_cwmax=63
tx_queue_data2_burst=0
tx_queue_data1_aifs=1
tx_queue_data1_cwmin=7
tx_queue_data1_cwmax=15
tx_queue_data1_burst=3.0
tx_queue_data0_aifs=1
tx_queue_data0_cwmin=3
tx_queue_data0_cwmax=7
tx_queue_data0_burst=1.5

###set for iphone
ieee8021x=0
eap_server=0

Can you run the iw or iwconfig command again when you are connected? That should report the link quality, RSSI and (modulation) bit rate. If desired, you can use the watch command to report the output continuously for a few seconds ‘watch -n 5 <command>.’

That is the result when I am connected. Several devices are connected. Maybe I should mention that this device is on my router with several clients at any given time, and it is connected to a bridge.

Strange as the output you shared in your opening post says ‘Not connected.’, and not consistent with a connected (associated) wifi device.

updated tumbleweed today, installed wpa_supplicant as I didn’t have it installed.

Found one command working


iw list
Wiphy phy1
    max # scan SSIDs: 16
    max scan IEs length: 199 bytes
    max # sched scan SSIDs: 0
    max # match sets: 0
    max # scan plans: 1
    max scan plan interval: -1
    max scan plan iterations: 0
    Retry short limit: 7
    Retry long limit: 4
    Coverage class: 0 (up to 0m)
    Device supports RSN-IBSS.
    Device supports AP-side u-APSD.
    Supported Ciphers:
        * WEP40 (00-0f-ac:1)
        * WEP104 (00-0f-ac:5)
        * TKIP (00-0f-ac:2)
        * CCMP-128 (00-0f-ac:4)
        * 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 0x7 RX 0x7
    Configured Antennas: TX 0x7 RX 0x7
    Supported interface modes:
         * managed
         * AP
         * AP/VLAN
         * monitor
         * mesh point
    Band 2:
        Capabilities: 0x19ef
            RX LDPC
            HT20/HT40
            SM Power Save disabled
            RX HT20 SGI
            RX HT40 SGI
            TX STBC
            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: 8 usec (0x06)
        HT TX/RX MCS rate indexes supported: 0-23
        VHT Capabilities (0x338001b2):
            Max MPDU length: 11454
            Supported Channel Width: neither 160 nor 80+80
            RX LDPC
            short GI (80 MHz)
            TX STBC
            RX antenna pattern consistency
            TX antenna pattern consistency
        VHT RX MCS set:
            1 streams: MCS 0-9
            2 streams: MCS 0-9
            3 streams: MCS 0-9
            4 streams: not supported
            5 streams: not supported
            6 streams: not supported
            7 streams: not supported
            8 streams: not supported
        VHT RX highest supported: 0 Mbps
        VHT TX MCS set:
            1 streams: MCS 0-9
            2 streams: MCS 0-9
            3 streams: MCS 0-9
            4 streams: not supported
            5 streams: not supported
            6 streams: not supported
            7 streams: not supported
            8 streams: not supported
        VHT TX highest supported: 0 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] (23.0 dBm)
            * 5200 MHz [40] (23.0 dBm)
            * 5220 MHz [44] (23.0 dBm)
            * 5240 MHz [48] (23.0 dBm)
            * 5260 MHz [52] (23.0 dBm) (no IR, radar detection)
            * 5280 MHz [56] (23.0 dBm) (no IR, radar detection)
            * 5300 MHz [60] (23.0 dBm) (no IR, radar detection)
            * 5320 MHz [64] (23.0 dBm) (no IR, radar detection)
            * 5500 MHz [100] (23.0 dBm) (no IR, radar detection)
            * 5520 MHz [104] (23.0 dBm) (no IR, radar detection)
            * 5540 MHz [108] (23.0 dBm) (no IR, radar detection)
            * 5560 MHz [112] (23.0 dBm) (no IR, radar detection)
            * 5580 MHz [116] (23.0 dBm) (no IR, radar detection)
            * 5600 MHz [120] (23.0 dBm) (no IR, radar detection)
            * 5620 MHz [124] (23.0 dBm) (no IR, radar detection)
            * 5640 MHz [128] (23.0 dBm) (no IR, radar detection)
            * 5660 MHz [132] (23.0 dBm) (no IR, radar detection)
            * 5680 MHz [136] (23.0 dBm) (no IR, radar detection)
            * 5700 MHz [140] (23.0 dBm) (no IR, radar detection)
            * 5720 MHz [144] (23.0 dBm) (radar detection)
            * 5745 MHz [149] (30.0 dBm)
            * 5765 MHz [153] (30.0 dBm)
            * 5785 MHz [157] (30.0 dBm)
            * 5805 MHz [161] (30.0 dBm)
            * 5825 MHz [165] (30.0 dBm)
            * 5845 MHz [169] (disabled)
            * 5865 MHz [173] (disabled)
    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
         * set_wds_peer
         * probe_client
         * set_noack_map
         * register_beacons
         * start_p2p_device
         * set_mcast_rate
         * connect
         * disconnect
         * channel_switch
         * set_qos_map
         * set_multicast_to_unicast
    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 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
    software interface modes (can always be added):
         * AP/VLAN
         * monitor
    valid interface combinations:
         * #{ AP, mesh point } <= 8, #{ managed } <= 1,
           total <= 8, #channels <= 1, STA/AP BI must match
    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 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
    Driver/device bandwidth changes during BSS lifetime (AP/GO mode)
    Device supports static SMPS
    Device supports configuring vdev MAC-addr on create.
    Supported extended features:
        *  VHT_IBSS ]: VHT-IBSS
        *  RRM ]: RRM
        *  SET_SCAN_DWELL ]: scan dwell setting
        *  FILS_STA ]: STA FILS (Fast Initial Link Setup)
        *  CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
        *  CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
        *  TXQS ]: FQ-CoDel-enabled intermediate TXQs
        *  AIRTIME_FAIRNESS ]: airtime fairness scheduling

That only shows what the device is capable of, not what the device is doing when connected.

Looks like others had the bug and are fixing it.
https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git/commit/?h=ath-next&id=1340cc631bd00431e2f174525c971f119df9efa1
https://www.mail-archive.com/linux-wireless@vger.kernel.org/msg60032.html
Going to recompile my kernel with the patch and test it out.

100% Fixed, I utilized this method to recompile just the modules after waiting all day for the kernel to compile. https://github.com/twisteroidambassador/arch-linux-ath-user-regd/issues/1
And also applied the regdomain patch because I shouldn’t be forced to run on USA frequencies when I bought a world traveler card with the expectation that I could run it with my countries frequencies. I realize Qualcomm was lazy and decided to call everything 0x0 as USA. Hence why these patches exist.