[Feature][T8TSK-89][wifi] add limit sta devices connect ap numbers api

Change-Id: Ie09882442740579f3bb81befe84955f0c8d56e7d
diff --git a/lib/liblynq-wifi6/libwifi6.c b/lib/liblynq-wifi6/libwifi6.c
index cc14e8a..8867126 100755
--- a/lib/liblynq-wifi6/libwifi6.c
+++ b/lib/liblynq-wifi6/libwifi6.c
@@ -2494,4 +2494,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;
+}