Merge "[Bugfix][API-621][wifi]wifi add api to set diffrent channel with frequency" into drv_fw
diff --git a/meta/meta-mediatek-mt2735/recipes-kernel/modules/wg870-drv-insmod.bb b/meta/meta-mediatek-mt2735/recipes-kernel/modules/wg870-drv-insmod.bb
index 3322b6c..7d2bb59 100755
--- a/meta/meta-mediatek-mt2735/recipes-kernel/modules/wg870-drv-insmod.bb
+++ b/meta/meta-mediatek-mt2735/recipes-kernel/modules/wg870-drv-insmod.bb
@@ -5,7 +5,8 @@
 SRC_URI = "file://wifi/wg870/cyw955572fcipa_rev2.52.txt \
 			file://wg870_drv_insmod.service \
 			file://wg870_drv_insmod.sh \
-			file://wifi/wg870/firmware_pcie.trxse \
+			file://wifi/wg870/config_pcie.trxse \
+			file://wifi/wg870/0926.clm_blob \
 			file://wifi/wg870/w870_rtecdc_mfg.trxs "
 
 
@@ -21,7 +22,8 @@
 do_install() {
 	install -d ${D}/etc
 	install -d ${D}/system/etc/firmware/wifi/wg870/
-	install -m 755 ${WORKDIR}/wifi/wg870/firmware_pcie.trxse ${D}/etc/
+	install -m 755 ${WORKDIR}/wifi/wg870/config_pcie.trxse ${D}/etc/
+	install -m 755 ${WORKDIR}/wifi/wg870/0926.clm_blob ${D}/etc/
 	install -m 755 ${WORKDIR}/wifi/wg870/w870_rtecdc_mfg.trxs ${D}/system/etc/firmware/wifi/wg870/
 	install -m 755 ${WORKDIR}/wifi/wg870/cyw955572fcipa_rev2.52.txt ${D}/system/etc/firmware/wifi/wg870/
 
diff --git a/src/lynq/lib/liblynq-wifi6/include/libwifi6.h b/src/lynq/lib/liblynq-wifi6/include/libwifi6.h
index c6e4803..adc9ef2 100755
--- a/src/lynq/lib/liblynq-wifi6/include/libwifi6.h
+++ b/src/lynq/lib/liblynq-wifi6/include/libwifi6.h
@@ -218,4 +218,12 @@
 int lynq_get_connect_ap_band(lynq_wifi_index_e idx,lynq_wifi_band_m * band);
 int lynq_get_connect_ap_ip(lynq_wifi_index_e idx,char *ip);
 
+/*****add limit of connected ap device number 2022.10.12 by qs.xiong
+ *
+ *sta_number:
+ *      ap max be connected no more than 15
+ *      so sta_number : [1-15] 
+ */
+int lynq_ap_connect_num(int sta_number);
+
 #endif
diff --git a/src/lynq/lib/liblynq-wifi6/libwifi6.c b/src/lynq/lib/liblynq-wifi6/libwifi6.c
index 19c7cb3..49e664e 100755
--- a/src/lynq/lib/liblynq-wifi6/libwifi6.c
+++ b/src/lynq/lib/liblynq-wifi6/libwifi6.c
@@ -2522,4 +2522,19 @@
     return -1;
 }
 
+int lynq_ap_connect_num(int sta_number)
+{
+    char lynq_limit_cmd[32]={0};
+    int ret;
+    if((sta_number < 1 ) && (sta_number > 15)){
+        printf("sta_number: not in range\n",sta_number);
+        return -1;
+    }
+    sprintf(lynq_limit_cmd,"wl maxassoc  %d", sta_number);
+    ret = system(lynq_limit_cmd);
+    if(ret != 0){
+        printf("cmd of limit ap devices number error\n");
+    }
+    return 0;
+}