[BugFix][T106][bug-view-194][wifi] The maximum number of wifi connections can only be set to 31

	Only Configure: Yes
	Affected branch: master
	Affected module: wifi
	Is it affected on both ZXIC and MTK:only ZXIC
	Self-test: Yes
	Doc Update:Yes

Change-Id: I1f64d86c77055e22da50e3ed3d13d00da9bbf454
diff --git a/cap/zx297520v3/src/lynq/lib/liblynq-qser-wifi/lynq-qser-wifi.cpp b/cap/zx297520v3/src/lynq/lib/liblynq-qser-wifi/lynq-qser-wifi.cpp
index f3cb0bf..90204ac 100644
--- a/cap/zx297520v3/src/lynq/lib/liblynq-qser-wifi/lynq-qser-wifi.cpp
+++ b/cap/zx297520v3/src/lynq/lib/liblynq-qser-wifi/lynq-qser-wifi.cpp
@@ -1137,6 +1137,11 @@
 {
     WIFI_ENABLE_JUDGE();
     int ret = -1;
+    if(max_sta_num >= 32)
+    {
+        LYERRLOG("[%s ] fail max_sta_num = %d\n", __func__,max_sta_num);
+        return -1;
+    }
     ret = sc_wifi_ap_max_sta_num_set((sc_wifi_ap_index_e)idx, max_sta_num);
     if (0 != ret)
     {