Commit Graph

5 Commits

Author SHA1 Message Date
Rado Vrbovsky c1d10d813b Merge: Wireless core and drivers rebase to v6.11
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/5415

JIRA: https://issues.redhat.com/browse/RHEL-50013  

Tested: basic testing with several supported WiFi cards (Intel, Qualcomm, Mediatek and Realtek).

Wireless core and drivers update to v6.11.

Upstream status: linux.git

Later fixes to be included in next rebases:  
Omitted-fix: 0129e5ff2842 wifi: rtw88: 8703b: Fix reported RX band width  
Omitted-fix: 177b49dbf9c1 wifi: ath11k: use work queue to process beacon tx event  
Omitted-fix: 9b8d932053b8 wifi: mt76: mt7603: fix mixed declarations and code  
Omitted-fix: ded1a6d9e13a wifi: mt76: mt7996: fix handling mbss enable/disable  
Omitted-fix: 56310ddb50b1 wifi: rtw89: remove unused C2H event ID RTW89_MAC_C2H_FUNC_READ_WOW_CAM to prevent out-of-bounds reading  
Omitted-fix: d9dd3ac77cf7 wifi: rtw89: wow: fix wait condition for AOAC report request  
Omitted-fix: 76364f3edfde wifi: iwlwifi: mvm: allow ESR when we the ROC expires  
Omitted-fix: a949075d4bbf wifi: iwlwifi: mvm: set the cipher for secured NDP ranging  
Omitted-fix: a7bc66fe8093 bus: mhi: host: pci_generic: Update EDL firmware path for Foxconn modems  
Omitted-fix: bd9813d13be4 wifi: cfg80211: check radio iface combination for multi radio per wiphy  
Omitted-fix: 7c24c5bdf489 wifi: mac80211_hwsim: correct MODULE_PARM_DESC of multi_radio  
Omitted-fix: 45ae0e8cf8c7 wifi: rtw89: 8852c: support firmware format up to v1  
Omitted-fix: f403fed7f98e wifi: mac80211: remove label usage in ieee80211_start_radar_detection()  
Omitted-fix: f4bb650cfab4 wifi: trace: unlink rdev_end_cac trace event from wiphy_netdev_evt class  
Omitted-fix: 62c16f219a73 wifi: cfg80211: move DFS related members to links[] in wireless_dev  
Omitted-fix: 81f67d60ebf2 wifi: cfg80211: handle DFS per link  
Omitted-fix: d74380ee99b5 wifi: mac80211: handle DFS per link  
Omitted-fix: 0b7798232eee wifi: cfg80211/mac80211: use proper link ID for DFS  
Omitted-fix: bca8bc0399ac wifi: mac80211: handle ieee80211_radar_detected() for MLO  
Omitted-fix: 53d7c99719e2 wifi: ath11k: fix RCU documentation in ath11k_mac_op_ipv6_changed()  

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>

Approved-by: Herton R. Krzesinski <herton@redhat.com>
Approved-by: Desnes Nunes <desnesn@redhat.com>
Approved-by: Kamal Heib <kheib@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Rado Vrbovsky <rvrbovsk@redhat.com>
2024-11-15 13:27:52 +00:00
Jose Ignacio Tornos Martinez 161b865c23 wifi: virt_wifi: don't use strlen() in const context
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit 6e909f489191b365364e9d636dec33b5dfd4e5eb
Author: Johannes Berg <johannes.berg@intel.com>
Date:   Tue Jul 9 08:34:09 2024 +0200

    wifi: virt_wifi: don't use strlen() in const context
    
    Looks like not all compilers allow strlen(constant) as
    a constant, so don't do that. Instead, revert back to
    defining the length as the first submission had it.
    
    Fixes: b5d14b0c6716 ("wifi: virt_wifi: avoid reporting connection success with wrong SSID")
    Reported-by: kernel test robot <lkp@intel.com>
    Closes: https://lore.kernel.org/oe-kbuild-all/202407090934.NnR1TUbW-lkp@intel.com/
    Closes: https://lore.kernel.org/oe-kbuild-all/202407090944.mpwLHGt9-lkp@intel.com/
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:18:26 +01:00
Jose Ignacio Tornos Martinez 571bd433a0 wifi: virt_wifi: avoid reporting connection success with wrong SSID
JIRA: https://issues.redhat.com/browse/RHEL-50013

commit b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7
Author: En-Wei Wu <en-wei.wu@canonical.com>
Date:   Fri Jul 5 10:37:56 2024 +0800

    wifi: virt_wifi: avoid reporting connection success with wrong SSID
    
    When user issues a connection with a different SSID than the one
    virt_wifi has advertised, the __cfg80211_connect_result() will
    trigger the warning: WARN_ON(bss_not_found).
    
    The issue is because the connection code in virt_wifi does not
    check the SSID from user space (it only checks the BSSID), and
    virt_wifi will call cfg80211_connect_result() with WLAN_STATUS_SUCCESS
    even if the SSID is different from the one virt_wifi has advertised.
    Eventually cfg80211 won't be able to find the cfg80211_bss and generate
    the warning.
    
    Fixed it by checking the SSID (from user space) in the connection code.
    
    Fixes: c7cdba31ed ("mac80211-next: rtnetlink wifi simulation device")
    Reported-by: syzbot+d6eb9cee2885ec06f5e3@syzkaller.appspotmail.com
    Signed-off-by: En-Wei Wu <en-wei.wu@canonical.com>
    Link: https://patch.msgid.link/20240705023756.10954-1-en-wei.wu@canonical.com
    Signed-off-by: Johannes Berg <johannes.berg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
2024-10-29 08:18:26 +01:00
Ivan Vecera f183fb3c8a rtnetlink: prepare nla_put_iflink() to run under RCU
JIRA: https://issues.redhat.com/browse/RHEL-62123

Conflicts:
* drivers/net/netkit.c
  - hunk omitted as the driver is not present in RHEL
* net/dsa/user.c
  - the hunk applied in dsa/slave.c due to absence of DSA deps

commit e353ea9ce471331c13edffd5977eadd602d1bb80
Author: Eric Dumazet <edumazet@google.com>
Date:   Thu Feb 22 10:50:08 2024 +0000

    rtnetlink: prepare nla_put_iflink() to run under RCU

    We want to be able to run rtnl_fill_ifinfo() under RCU protection
    instead of RTNL in the future.

    This patch prepares dev_get_iflink() and nla_put_iflink()
    to run either with RTNL or RCU held.

    Signed-off-by: Eric Dumazet <edumazet@google.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
2024-10-24 16:14:43 +02:00
Íñigo Huguet 38a3a83a36 wifi: move mac80211_hwsim and virt_wifi to virtual directory
Bugzilla: https://bugzilla.redhat.com/2196821

commit f79cbc77abde22dd01ac90393a7bfb283d9d50a3
Author: Kalle Valo <kvalo@kernel.org>
Date:   Mon Feb 27 14:17:31 2023 +0200

    wifi: move mac80211_hwsim and virt_wifi to virtual directory
    
    To clean up drivers/net/wireless move the virtual drivers to a new virtual
    directory. I did consider adding CONFIG_WLAN_VENDOR_VIRTUAL like other vendors
    have but then dropped the idea as we are not real drivers.
    
    There should be no changes in compilation or in Kconfig options, merely moving
    files. The order in menuconfig is slightly changed, the virtual drivers are now
    last in the list.
    
    Signed-off-by: Kalle Valo <kvalo@kernel.org>
    Link: https://lore.kernel.org/r/20230227121732.8967-2-kvalo@kernel.org

Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
2023-07-26 13:14:41 +02:00