Ver código fonte

hostapd: fix processing mbssid config option

Do not strip the first character from the field name

Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau 1 ano atrás
pai
commit
59dd9cddf9
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      package/network/services/hostapd/files/hostapd.uc

+ 3 - 2
package/network/services/hostapd/files/hostapd.uc

@@ -746,9 +746,10 @@ function iface_load_config(phy, radio, filename)
 			continue;
 			continue;
 		}
 		}
 
 
-		if (val[0] == "#num_global_macaddr" ||
-		    val[0] == "mbssid")
+		if (val[0] == "#num_global_macaddr")
 			config[substr(val[0], 1)] = int(val[1]);
 			config[substr(val[0], 1)] = int(val[1]);
+		else if (val[0] == "mbssid")
+			config[val[0]] = int(val[1]);
 
 
 		push(config.radio.data, line);
 		push(config.radio.data, line);
 	}
 	}