mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
Avoid compiler warning with CONFIG_NO_STDOUT_DEBUG=y
There is no need to use the bss variable which is used only within a wpa_printf() call that can be conditionally removed from the build. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
ed1bf011da
commit
0249c12596
@ -1189,13 +1189,11 @@ int hostapd_reload_iface(struct hostapd_iface *hapd_iface)
|
|||||||
int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
|
int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
|
||||||
{
|
{
|
||||||
size_t j;
|
size_t j;
|
||||||
struct hostapd_bss_config *bss;
|
|
||||||
const struct wpa_driver_ops *driver;
|
const struct wpa_driver_ops *driver;
|
||||||
void *drv_priv;
|
void *drv_priv;
|
||||||
|
|
||||||
if (hapd_iface == NULL)
|
if (hapd_iface == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
bss = hapd_iface->bss[0]->conf;
|
|
||||||
driver = hapd_iface->bss[0]->driver;
|
driver = hapd_iface->bss[0]->driver;
|
||||||
drv_priv = hapd_iface->bss[0]->drv_priv;
|
drv_priv = hapd_iface->bss[0]->drv_priv;
|
||||||
|
|
||||||
@ -1218,7 +1216,8 @@ int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
|
|||||||
*/
|
*/
|
||||||
hostapd_cleanup_iface_partial(hapd_iface);
|
hostapd_cleanup_iface_partial(hapd_iface);
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "Interface %s disabled", bss->iface);
|
wpa_printf(MSG_DEBUG, "Interface %s disabled",
|
||||||
|
hapd_iface->bss[0]->conf->iface);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user