Search Linux Wireless

[PATCH] hostapd: fix eloop warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes a warning that occurs when turning off hostapd.

Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx>

---
Thought I'd send that earlier but it seems I forgot.
This is a slightly modified version of my original patch, please do test
it as I've not been able to test it right now. The original was fine
though, but it shut down the eloop in wireless_event_deinit instead of
here.

--- hostap.orig/hostapd/driver_devicescape.c	2007-08-15 13:06:48.000000000 +0200
+++ hostap/hostapd/driver_devicescape.c	2007-08-15 13:07:39.000000000 +0200
@@ -1954,8 +1954,10 @@ static void i802_deinit(void *priv)
 
 	(void) hostapd_set_iface_flags(drv, 0);
 
-	if (drv->sock >= 0)
+	if (drv->sock >= 0) {
+		eloop_unregister_read_sock(drv->sock);
 		close(drv->sock);
+	}
 	if (drv->ioctl_sock >= 0)
 		close(drv->ioctl_sock);
 


-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux