qca-wifi-7/mac80211: Add tip patch to fix scanning on WiFi 7 devices

Need to unblock chandef as scanning definitions which
is used by TIP modules for scanning trigger.

Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
This commit is contained in:
Marek Kwaczynski
2025-03-08 23:07:11 +00:00
committed by John Crispin
parent a9e0e16a80
commit b791a723ca
2 changed files with 28 additions and 0 deletions

View File

@@ -345,6 +345,7 @@ ifneq ($(CONFIG_PACKAGE_kmod-cfg80211),)
endif
EXTERNAL_PATCH_DIR:=$(CURDIR)/patches-qca
PATCH_TIP_DIR:=$(CURDIR)/patches-tip
define Build/Patch
$(if $(QUILT),rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches)
@@ -360,6 +361,7 @@ define Build/Patch
$(call PatchDir,$(PKG_BUILD_DIR),$(EXTERNAL_PATCH_DIR)/ath11k,ath11k/)
$(call PatchDir,$(PKG_BUILD_DIR),$(EXTERNAL_PATCH_DIR)/ath12k,ath12k/)
$(call PatchDir,$(PKG_BUILD_DIR),$(EXTERNAL_PATCH_DIR)/pending,pending/)
$(call PatchDir,$(PKG_BUILD_DIR),$(PATCH_TIP_DIR)/pending,pending/)
$(if $(QUILT),touch $(PKG_BUILD_DIR)/.quilt_used)
endef

View File

@@ -0,0 +1,26 @@
Index: backports-6.5-rc3/net/wireless/nl80211.c
===================================================================
--- backports-6.5-rc3.orig/net/wireless/nl80211.c
+++ backports-6.5-rc3/net/wireless/nl80211.c
@@ -10270,14 +10296,15 @@ static int nl80211_trigger_scan(struct s
}
}
- if (!i) {
- err = -EINVAL;
- goto out_free;
+ if (!chandef_found) {
+ if (!i) {
+ err = -EINVAL;
+ goto out_free;
+ }
+ request->n_channels = i;
+ request->scan_with_freq_info = freq_info_provided;
}
- request->n_channels = i;
- request->scan_with_freq_info = freq_info_provided;
-
wdev_lock(wdev);
for (i = 0; i < request->n_channels; i++) {
struct ieee80211_channel *chan = request->channels[i];