Skip to content
Permalink
greearb-candel…
Switch branches/tags

Commits on Nov 18, 2021

  1. mt76: mt7915: fix SGI reporting when using tx-overrides

    The station wtbl logic to read rate-ctrl settings does not work when
    fixed rates are used.  So, read sgi settings from the txo configuration
    in this case.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  2. mt76: mt7915: add support for tx-overrides

    Allow setting fix rate on transmit without using full testmode
    logic.
    
    txpower, dynbw, retry count is not currently supported.
    And, probably later need additional logic to not apply this
    txo to non-data frames and to smaller frames, to allow
    ARP and such to go through while also forcing test data frames
    to arbitrary tx-rates (rates which very well may not be
    received by peer.)
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  3. mt76: mt7915: report tx-retries

    mac80211 stack will only report tx-status for skb claiming to be ampdu heads,
    so lie a bit in mt7915 and set the flag so that mac80211 will record status
    for each skb.
    
    mt7915 appears to report retry status on an individual per-skb manner,
    so that method above seems to work.
    
    Re-constitute the txinfo status rate info so that the rix and flags
    is also at least close to correct.  No direct way to report HE
    rates that way, so mac80211 might could use some tweaking in
    the ieee80211_tx_status_ext to take both info and status->rate
    into account.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  4. mt76: mt7915: txfree status to show txcount instead of latency

    Latency is not obviously that useful, but txcount can let us deduce
    retries, which may be more interesting.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  5. mt76: mt7915: add note about TXSFM 0x2

    This format needs a special command to enable, and is not enabled
    by default.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  6. mt76: mt7915: debugfs hook to enable TXS for NO_SKB pkt-ids

    This lets user turn on/off this feature.  Enabling gives better
    tx-rate related stats, but will cause extra driver and (maybe)
    firmware work.  Not sure if it actually affects performance or
    not.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  7. mt76: mt7915: allow processing TXS for 'NO_SKB' pkt-ids

    This will let us update stats and wcid.rate for every TXS
    callback we receive for a particular wcid.
    
    For now, the TXS is not requested for NO_SKB frames, however.
    That will be allowed in next patch.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021
  8. mt76: mt7915: cache sgi in wcid.

    Explicitly cache short_gi and he_gi in wcid, don't try to store
    it in the wcid.rate object.  Slightly less confusing and less fragile
    when TXS starts parsing lots of frames.
    
    Signed-off-by: Ben Greear <greearb@candelatech.com>
    greearb authored and intel-lab-lkp committed Nov 18, 2021

Commits on Oct 28, 2021

  1. Merge tag 'iwlwifi-next-for-kalle-2021-10-28' of git://git.kernel.org…

    …/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
    
    iwlwifi patches for v5.16
    
    * Support a new ACPI table revision;
    * Improvements in the device selection code;
    * New HW support;
    * Some fixes in the Geographic SAR implementation;
    * Support for WiFi 6E enablement via BIOS;
    * Support FW API version 67;
    * Improve debugging support;
    * Some fixes in session protection;
    * Some other small fixes, clean-ups and improvements.
    
    # gpg: Signature made Thu 28 Oct 2021 12:11:27 PM EEST
    # gpg:                using RSA key 1772CD7E06F604F5A6EBCB26A1479CA21A3CC5FA
    # gpg: Good signature from "Luciano Roth Coelho (Luca) <luca@coelho.fi>" [full]
    # gpg:                 aka "Luciano Roth Coelho (Intel) <luciano.coelho@intel.com>" [full]
    Kalle Valo committed Oct 28, 2021
  2. mwifiex: fix division by zero in fw download path

    Add the missing endpoint sanity checks to probe() to avoid division by
    zero in mwifiex_write_data_sync() in case a malicious device has broken
    descriptors (or when doing descriptor fuzz testing).
    
    Only add checks for the firmware-download boot stage, which require both
    command endpoints, for now. The driver looks like it will handle a
    missing endpoint during normal operation without oopsing, albeit not
    very gracefully as it will try to submit URBs to the default pipe and
    fail.
    
    Note that USB core will reject URBs submitted for endpoints with zero
    wMaxPacketSize but that drivers doing packet-size calculations still
    need to handle this (cf. commit 2548288 ("USB: Fix: Don't skip
    endpoint descriptors with maxpacket=0")).
    
    Fixes: 4daffe3 ("mwifiex: add support for Marvell USB8797 chipset")
    Cc: stable@vger.kernel.org      # 3.5
    Cc: Amitkumar Karwar <akarwar@marvell.com>
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Reviewed-by: Brian Norris <briannorris@chromium.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20211027080819.6675-4-johan@kernel.org
    jhovold authored and Kalle Valo committed Oct 28, 2021
  3. rsi: fix control-message timeout

    USB control-message timeouts are specified in milliseconds and should
    specifically not vary with CONFIG_HZ.
    
    Use the common control-message timeout define for the five-second
    timeout.
    
    Fixes: dad0d04 ("rsi: Add RS9113 wireless driver")
    Cc: stable@vger.kernel.org      # 3.15
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20211025120522.6045-5-johan@kernel.org
    jhovold authored and Kalle Valo committed Oct 28, 2021
  4. rtl8187: fix control-message timeouts

    USB control-message timeouts are specified in milliseconds and should
    specifically not vary with CONFIG_HZ.
    
    Fixes: 605bebe ("[PATCH] Add rtl8187 wireless driver")
    Cc: stable@vger.kernel.org      # 2.6.23
    Signed-off-by: Johan Hovold <johan@kernel.org>
    Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
    Link: https://lore.kernel.org/r/20211025120522.6045-4-johan@kernel.org
    jhovold authored and Kalle Valo committed Oct 28, 2021
  5. Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kva…

    …lo/ath.git
    
    ath.git patches for v5.16. Major changes:
    
    ath11k
    
    * fix QCA6390 A-MSDU handling (CVE-2020-24588)
    
    wcn36xx
    
    * enable hardware scan offload for 5Ghz band
    
    * add missing 5GHz channels 136 and 144
    Kalle Valo committed Oct 28, 2021
  6. iwlwifi: bump FW API to 67 for AX devices

    Start supporting API version 67 for AX devices.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.3c0af5832d23.I7c18858604b72bc15cf2047a91531e4aa7c0527a@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    lucacoelho committed Oct 28, 2021
  7. iwlwifi: mvm: extend session protection on association

    When we receive an association response, a significant amount
    of time might have passed since we sent the corresponding
    association request (mac80211 will wait up to 500ms for the TX
    and then 100ms for the response after ACK was received). But
    the time event is touched only when we send the assoc request,
    so it might not have much time remaining, more easily causing
    the (dreaded)
    
      No beacon heard and the session protection is over already...
    
    message.
    
    Refactor iwl_mvm_mac_mgd_prepare_tx() and split out a new
    function iwl_mvm_protect_assoc(), and call it on successful
    association to extend the time event to the minimum time if
    necessary.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.411c174d9e5e.I03c701c2e9e6788f34546e538264763db0ab30ef@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  8. iwlwifi: rename CHANNEL_SWITCH_NOA_NOTIF to CHANNEL_SWITCH_START_NOTIF

    There is no relation between the name and the purpose of the
    notification. This notification is sent from FW when the channel switch
    starts.
    
    Signed-off-by: Nathan Errera <nathan.errera@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.24b71b0cb741.I97deb70e18f259de51395a1e7c7e58c7b006c317@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Nathan Errera authored and lucacoelho committed Oct 28, 2021
  9. iwlwifi: mvm: remove session protection on disassoc

    If we somehow get disassociated while still waiting for a beacon
    during connection, we can end up printing the
    
      No beacon heard and the session protection is over already...
    
    message even if we aren't really quite waiting for it anymore.
    Remove the time event, if it's running, when we get disassociated
    and don't need to wait for beacons anymore.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.6192e2363784.Ie9c2bfdc30dcfff2c4dd7c393c79e3ac182840a9@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  10. iwlwifi: mvm: fix WGDS table print in iwl_mvm_chub_update_mcc()

    WGDS table index 0 means disabled, but we were erroneously checking
    for < 0 to print that it is disabled.  Fix that and make the print
    more readable by mentioning that it's either disabled or there was an
    error.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.98a5572bf0f8.I6c112ca80cf427f12b2c752899d293cb6437ba5f@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    lucacoelho committed Oct 28, 2021
  11. iwlwifi: rename GEO_TX_POWER_LIMIT to PER_CHAIN_LIMIT_OFFSET_CMD

    When this code was implemented, there was no official FW API
    description yet, so a placeholder name was used (GEO_TX_POWER_LIMIT).
    But then the command became actually called
    PER_CHAIN_LIMIT_OFFSET_CMD.  Rename the command (and change related
    comments) to PER_CHAIN_LIMIT_OFFSET_CMD to avoid confusion.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.672fa727ef75.I6572df5d1e3441a0214993a59985da9a9431f3e5@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    lucacoelho committed Oct 28, 2021
  12. iwlwifi: mvm: d3: use internal data representation

    Trying to convert from one firmware data representation to the
    next version is getting tedious and error-prone, and doesn't
    lend itself well to new APIs being added. Additionally, the
    version 11 of the API as defined in the driver doesn't even
    exist in the firmware.
    
    Instead of converting to a newer firmware version of the data,
    convert to an internal representation. This takes a bit more
    space because the TKIP/AES counters etc. must be kept twice,
    their representation is different and we don't know which of
    the ones it is until later, but this is just a temporary use
    of memory, and the code is clearer this way.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.9e71630627f3.Iad975e15338844ca068683f62a51eb1fcb69e608@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  13. iwlwifi: mvm: update RFI TLV

    RFI TLV was moved in FW from set3 to set1 due to FW internal
    dependency. Adjust driver to this change.
    
    Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.90e42cd8cb37.I89ac9910e38006a2e5c9e87d371a8507f475572d@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    ggreenma authored and lucacoelho committed Oct 28, 2021
  14. iwlwifi: mvm: don't get address of mvm->fwrt just to dereference as a…

    … pointer
    
    The mvm->fwrt element is not a pointer, but an instance of the
    structure, so we should access its elements with a dot-notation
    instead of getting the address and dereferencing it as a pointer.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.ce6841093681.I09634a0aa845a0256e79c7895154d9ac35bc26be@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    lucacoelho committed Oct 28, 2021
  15. iwlwifi: mvm: read 6E enablement flags from DSM and pass to FW

    We need to call a new DSM function and pass the values to the firmware
    in order to allow enablement of 6E support by the OEMs via ACPI.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.2fa34d31383c.I6504005c60882c94e6e58f64cab4e42e6481ce08@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    lucacoelho committed Oct 28, 2021
  16. iwlwifi: yoyo: support for ROM usniffer

    Add handling of config set TLV for ROM usniffer
    support.
    
    Signed-off-by: Mukesh Sisodiya <mukesh.sisodiya@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.507212be427a.I36acb6ca84095963614be70dc944ba0d98ee770c@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Mukesh Sisodiya authored and lucacoelho committed Oct 28, 2021
  17. iwlwifi: fw: uefi: add missing include guards

    We still don't use #pragma once in the kernel, but even if
    we did it'd be missing. Add the missing include guards.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Fixes: 84c3c99 ("iwlwifi: move UEFI code to a separate file")
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.7fc9988ed49b.I87e300fab664047581e51fb9b02744c75320d08c@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  18. iwlwifi: dump host monitor data when NIC doesn't init

    If the NIC cannot be initialized, dump host monitor data
    so we can analyze properly why it didn't initialize.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.21c90ba4fa5f.I2a30f62aa4685dc7623d3c69838909833c3f435c@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  19. iwlwifi: pcie: simplify iwl_pci_find_dev_info()

    We currently match the list of devices from the start to
    the end, but then find the *last* match, so we need to
    look at each and every entry. We don't want to change the
    semantics ("most generic entry must come first"), so just
    change the order of matching to be back-to-front, then we
    can break out once we find a match.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.abd85e1391cb.I7681fe90735044cc1c59f120e8591b7ac125535d@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  20. iwlwifi: ACPI: support revision 3 WGDS tables

    There's a new revision of the WGDS table with more data,
    and corresponding firmware API to pass it through. Add
    support for both.
    
    Since we now support 4 different versions, make a table
    to load them instead of hard-coding it all.
    
    Signed-off-by: Ayala Barazani <ayala.barazani@intel.com>
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.2f9b8e304f25.If88d2d1309270e659d4845c5b5c22d5e8d8e2caf@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Ayala Barazani authored and lucacoelho committed Oct 28, 2021
  21. iwlwifi: pcie: update sw error interrupt for BZ family

    The cause for sw error in BZ device family was changed
    
    Signed-off-by: Mike Golant <michael.golant@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.f674cd409b8e.I519f554d0a22d4711077785ec2bd7c564997241f@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    mgolant authored and lucacoelho committed Oct 28, 2021
  22. iwlwifi: add new pci SoF with JF

    add new SoF JF device to the driver.
    
    Signed-off-by: Yaara Baruch <yaara.baruch@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.50e62c8ef85b.I3498879d8c184e42b1578a64aa7b7c99a18b75fb@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Yaara Baruch authored and lucacoelho committed Oct 28, 2021
  23. iwlwifi: mvm: Use all Rx chains for roaming scan

    To improve chances of hearing beacons and probe responses during
    a scan which (based on the scan request parameters) looks like a
    roaming scan, enable reception on all chains.
    
    Signed-off-by: Ilan Peer <ilan.peer@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.f115ad455aca.I5de854fe8ce58c85c21a7adf43526acb29156a08@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    ilanpeer2 authored and lucacoelho committed Oct 28, 2021
  24. iwlwifi: pcie: remove two duplicate PNJ device entries

    Since PNJ and TH have the same ID (0x32), there are duplicate
    entries. Remove the duplicates with PNJ since PNJ is only the
    test device in the first place.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.0ca7c9322e69.Id2f32427795d0713fd7d2722567e604808b219dd@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  25. iwlwifi: pcie: refactor dev_info lookup

    The large condition here is not very clear, refactor the code to
    a separate function where we can more easily just check each of
    the pieces separately.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.ef06ed58a26e.Ie9664a94b157c5781c481118d900ae428c26fdb3@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  26. iwlwifi: pcie: remove duplicate entry

    This entry is literally duplicated, remove one of them.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.239f82fc3737.I5fef3a20fbce77e201dc35d45be0ee526bcd3cd3@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
  27. iwlwifi: pcie: fix killer name matching for AX200

    The "Killer(R) Wi-Fi 6 AX1650w 160MHz Wireless Network Adapter (200D2W)"
    and "Killer(R) Wi-Fi 6 AX1650x 160MHz Wireless Network Adapter (200NGW)"
    names couldn't match properly because the most generic entry needs to be
    specified last.
    
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024165252.86a430e5b2ff.I7a9e89df7ddfc939690d3718d41afc934a4d4ea0@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    jmberg-intel authored and lucacoelho committed Oct 28, 2021
Older