[rdkb][common][hal][fix 8 mbss re-config loss cfg issue]

1. Fix issue of 8 2G MBSS config loss issue
2. Modify error of get radio enable state
Test: Pass

Change-Id: Ibc9ff81dfe74f3b14d03f4a0a1d71f3abab08535
diff --git a/src/wifi/wifi_hal.c b/src/wifi/wifi_hal.c
index f407a0c..dcb14be 100644
--- a/src/wifi/wifi_hal.c
+++ b/src/wifi/wifi_hal.c
@@ -1329,7 +1329,7 @@
 	/* loop all interface in radio, if any is enable, reture true, else return false */
 	for(apIndex=radioIndex; apIndex<MAX_APS; apIndex+=max_radio_num)
 	{
-		if (wifi_GetInterfaceName(radioIndex, interface_name) != RETURN_OK)
+		if (wifi_GetInterfaceName(apIndex, interface_name) != RETURN_OK)
 			continue;
 		sprintf(cmd, "hostapd_cli -i %s status | grep state | cut -d '=' -f2", interface_name);
 		_syscmd(cmd, buf, sizeof(buf));
@@ -1386,7 +1386,7 @@
             if (wifi_GetInterfaceName(apIndex, interface_name) != RETURN_OK)
                 continue;
 
-            snprintf(cmd, sizeof(cmd), "cat %s | grep %s | cut -d'=' -f2", VAP_STATUS_FILE, interface_name);
+            snprintf(cmd, sizeof(cmd), "cat %s | grep %s= | cut -d'=' -f2", VAP_STATUS_FILE, interface_name);
             _syscmd(cmd, buf, sizeof(buf));
             if(*buf == '1') {
                 if (!(apIndex/max_radio_num)) {
@@ -3874,7 +3874,7 @@
         apIndex = max_radio_num*i+radioIndex;
         if (wifi_GetInterfaceName(apIndex, interface_name) != RETURN_OK)
             continue;
-        snprintf(cmd, sizeof(cmd), "cat %s | grep %s | cut -d'=' -f2", VAP_STATUS_FILE, interface_name);
+        snprintf(cmd, sizeof(cmd), "cat %s | grep %s= | cut -d'=' -f2", VAP_STATUS_FILE, interface_name);
         _syscmd(cmd, buf, sizeof(buf));
         if(*buf == '1')
                wifi_setApEnable(apIndex, true);