Browse Source

qcacmn: Fix the kernel warning seen in ch_switch_notify()

A warning seen in cfg80211_ch_switch_notify() for the kernel version
5.4.213. The reason is cfg80211_update_current_bss() is called for
kernel version 5.4.0.

To fix this issue, call cfg80211_update_current_bss() for the kernel
version greater than 5.4.0 and less than 6.0.0 kernel.

Change-Id: Ic131bfe3661556b836df6ba7566e8e9abc4deba5
CRs-Fixed: 3637354
Shashikala Prabhu 1 year ago
parent
commit
c57184e211

+ 2 - 1
os_if/linux/mlme/src/osif_cm_connect_rsp.c

@@ -879,7 +879,8 @@ static void osif_indcate_connect_results(struct wlan_objmgr_vdev *vdev,
 }
 #else /* WLAN_FEATURE_11BE_MLO_ADV_FEATURE */
 
-#if (LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 213)) && \
+	(LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0))
 /**
  * osif_update_current_bss() - Wrapper API to call cfg80211_update_current_bss
  * @dev: network device

+ 2 - 1
os_if/linux/mlme/src/osif_cm_disconnect_rsp.c

@@ -168,7 +168,8 @@ static struct wlan_objmgr_vdev *osif_cm_get_anchor_vdev(
 		return NULL;
 }
 
-#if (LINUX_VERSION_CODE == KERNEL_VERSION(5, 4, 0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 213)) && \
+	(LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0))
 /**
  * osif_cm_indicate_disconnect_for_non_assoc_link() - Wrapper API to clear
  * current bss param of non-assoc link