wpa_supplicant_8_lib: Fix interface name parsing in clear mcc quota

Do not use white space as delimiter in parsing interface name as
trailing spaces in cmd string are trimmed and it ends with null
character.

Change-Id: I8147a4e1b0ccf877a656a986e1fdb0448799a4ec
CRs-Fixed: 3703852
(cherry picked from commit 9aa9aecd998e7a12bafca2dcc0fe0c25f9b1bc22)
diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 24a00c8..b628abb 100644
--- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -5240,17 +5240,7 @@
 
 	/* First comes interface name - optional */
 	if (os_strncasecmp(cmd, "iface", 5) == 0) {
-		char *iface;
 		cmd = move_to_next_str(cmd);
-		/* null terminate the iface name in the cmd string */
-		iface = strchr(cmd, ' ');
-		if (iface == NULL) {
-			wpa_printf(MSG_ERROR, "mcc_quota: iface is not found"
-				   " in cmd string");
-			return -EINVAL;
-		}
-		*iface = '\0';
-		iface = cmd;
 		errno = 0;
 		if_index = if_nametoindex(cmd);
 		if (if_index == 0) {