mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
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:
committed by
John Crispin
parent
a9e0e16a80
commit
b791a723ca
@@ -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
|
||||
|
||||
|
||||
@@ -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];
|
||||
Reference in New Issue
Block a user