ソースを参照

qcacmn: Update for policy manager frequency based APIs

Due to channel number ambiguity with introduction of 6Ghz operation
policy manager APIs are updated to use frequency values instead
of channel number. Update corresponding caller functions to
adapt for frequency usage.

Change-Id: Icc882d28d73d55fce5abaedbdff5f90bec095b61
CRs-fixed: 2550069
Manikandan Mohan 5 年 前
コミット
afa4251d04
1 ファイル変更4 行追加7 行削除
  1. 4 7
      os_if/linux/scan/src/wlan_cfg80211_scan.c

+ 4 - 7
os_if/linux/scan/src/wlan_cfg80211_scan.c

@@ -267,7 +267,8 @@ static QDF_STATUS wlan_cfg80211_is_chan_ok_for_dnbs(
 			struct wlan_objmgr_psoc *psoc,
 			u8 channel, bool *ok)
 {
-	QDF_STATUS status = policy_mgr_is_chan_ok_for_dnbs(psoc, channel, ok);
+	QDF_STATUS status = policy_mgr_is_chan_ok_for_dnbs(
+				psoc, wlan_chan_to_freq(channel), ok);
 
 	if (QDF_IS_STATUS_ERROR(status)) {
 		osif_err("DNBS check failed");
@@ -1446,12 +1447,8 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
 			if (ap_or_go_present) {
 				bool ok;
 
-				qdf_status =
-					policy_mgr_is_chan_ok_for_dnbs(
-							psoc,
-							wlan_reg_freq_to_chan(
-								pdev, c_freq),
-							&ok);
+				qdf_status = policy_mgr_is_chan_ok_for_dnbs(
+							psoc, c_freq, &ok);
 
 				if (QDF_IS_STATUS_ERROR(qdf_status)) {
 					osif_err("DNBS check failed");