WMESH_LOGD("channel : %d", channel);
WMESH_LOGD("visibility: %d", visibility);
WMESH_LOGD("max_sta : %d", max_sta);
- WMESH_LOGD("security : %d", security);
- WMESH_LOGD("Passphrase : %s", passphrase ? passphrase : "NULL");
if (security == 1)
net_wmesh_complete_get_softap(object, invocation, ssid, mode, channel,
buf[ln] = '\0';
if (strncmp(buf, "interface", strlen("interface")) == 0) {
- *softap_interface = g_strdup(strrchr(buf, '=') + 1);
+ *softap_interface = g_strdup(strchr(buf, '=') + 1);
WMESH_LOGD("Interface: %s", *softap_interface);
} else if (strncmp(buf, "ssid", strlen("ssid")) == 0) {
- *ssid = g_strdup(strrchr(buf, '=') + 1);
+ *ssid = g_strdup(strchr(buf, '=') + 1);
WMESH_LOGD("SSID: %s", *ssid);
} else if (strncmp(buf, "hw_mode", strlen("hw_mode")) == 0) {
- *mode = g_strdup(strrchr(buf, '=') + 1);
+ *mode = g_strdup(strchr(buf, '=') + 1);
WMESH_LOGD("Mode: %s", *mode);
} else if (strncmp(buf, "channel", strlen("channel")) == 0) {
- *channel = atoi(strrchr(buf, '=') + 1);
+ *channel = atoi(strchr(buf, '=') + 1);
WMESH_LOGD("Channel: %d", *channel);
} else if (strncmp(buf, "ignore_broadcast_ssid",
strlen("ignore_broadcast_ssid")) == 0) {
- *visibility = atoi(strrchr(buf, '=') + 1) == 0 ? 1 : 0;
+ *visibility = atoi(strchr(buf, '=') + 1) == 0 ? 1 : 0;
WMESH_LOGD("Visibility: %d", *visibility);
} else if (strncmp(buf, "max_num_sta", strlen("max_num_sta")) == 0) {
- *max_sta = atoi(strrchr(buf, '=') + 1);
+ *max_sta = atoi(strchr(buf, '=') + 1);
WMESH_LOGD("Max Station: %d", *max_sta);
} else if (strncmp(buf, "wpa=", strlen("wpa=")) == 0) {
*security = 1;
len = 0;
}
*passphrase = g_strdup(passphrase_buf);
- WMESH_LOGD("Security: %d", *security);
- WMESH_LOGD("Passphrase: %s", *passphrase);
+
}
}