瀏覽代碼

qcacld-3.0: Use correct size for frequency list

Frequency list elements should be 2 octets, not one octet. Fix this.

Change-Id: I981d3bd23464fc83506c512338e5fb22637272cd
CRs-Fixed: 2775226
Amar Singhal 4 年之前
父節點
當前提交
c89446a515
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      core/sme/src/csr/csr_api_roam.c

+ 2 - 2
core/sme/src/csr/csr_api_roam.c

@@ -902,9 +902,9 @@ scan_list_sort_error:
 #ifdef QCA_WIFI_NAPIER_EMULATION
 #define SCAN_CHAN_LIST_5G_LEN 6
 #define SCAN_CHAN_LIST_2G_LEN 3
-static const uint8_t
+static const uint16_t
 csr_scan_chan_list_5g[SCAN_CHAN_LIST_5G_LEN] = { 5180, 5220, 5260, 5280, 5700, 5745 };
-static const uint8_t
+static const uint16_t
 csr_scan_chan_list_2g[SCAN_CHAN_LIST_2G_LEN] = { 2412, 2437, 2462 };
 static QDF_STATUS csr_emu_chan_req(uint32_t channel)
 {