Improved the error message for passive scan not being available
If the driver wrapper does not implement passive_scan handler, do not try to use strerror() to figure out what the error meant. This is not really an error that the user should be notified about.
This commit is contained in:
parent
9ee06a63e5
commit
ba60b94a40
1 changed files with 7 additions and 2 deletions
|
@ -234,8 +234,13 @@ static void select_hw_mode2(struct hostapd_iface *iface, int status)
|
||||||
iface->conf->passive_scan_listen,
|
iface->conf->passive_scan_listen,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
wpa_printf(MSG_ERROR, "Could not set passive scanning: %s",
|
if (ret == -1) {
|
||||||
strerror(ret));
|
wpa_printf(MSG_DEBUG, "Passive scanning not "
|
||||||
|
"supported");
|
||||||
|
} else {
|
||||||
|
wpa_printf(MSG_ERROR, "Could not set passive "
|
||||||
|
"scanning: %s", strerror(ret));
|
||||||
|
}
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue