nl80211: Clean up SO_WIFI_STATUS error reporting
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
948bd894f7
commit
73ea1ad7f2
1 changed files with 4 additions and 2 deletions
|
@ -2121,13 +2121,15 @@ static void * wpa_driver_nl80211_drv_init(void *ctx, const char *ifname,
|
|||
if (setsockopt(drv->eapol_tx_sock, SOL_SOCKET, SO_WIFI_STATUS,
|
||||
&enabled, sizeof(enabled)) < 0) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"nl80211: wifi status sockopt failed\n");
|
||||
"nl80211: wifi status sockopt failed: %s",
|
||||
strerror(errno));
|
||||
drv->data_tx_status = 0;
|
||||
if (!drv->use_monitor)
|
||||
drv->capa.flags &=
|
||||
~WPA_DRIVER_FLAGS_EAPOL_TX_STATUS;
|
||||
} else {
|
||||
eloop_register_read_sock(drv->eapol_tx_sock,
|
||||
eloop_register_read_sock(
|
||||
drv->eapol_tx_sock,
|
||||
wpa_driver_nl80211_handle_eapol_tx_status,
|
||||
drv, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue