* [PATCH] hostapd: fix eloop warning
@ 2007-08-15 11:08 Johannes Berg
2007-08-16 1:46 ` Jouni Malinen
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Berg @ 2007-08-15 11:08 UTC (permalink / raw)
To: Jouni Malinen; +Cc: linux-wireless
This fixes a warning that occurs when turning off hostapd.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
---
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);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hostapd: fix eloop warning
2007-08-15 11:08 [PATCH] hostapd: fix eloop warning Johannes Berg
@ 2007-08-16 1:46 ` Jouni Malinen
2007-08-16 13:24 ` Johannes Berg
0 siblings, 1 reply; 3+ messages in thread
From: Jouni Malinen @ 2007-08-16 1:46 UTC (permalink / raw)
To: Johannes Berg; +Cc: linux-wireless
On Wed, Aug 15, 2007 at 01:08:51PM +0200, Johannes Berg wrote:
> This fixes a warning that occurs when turning off hostapd.
Thanks, applied.
> 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.
I cannot currently even compile driver_devicescape.c successfully never
mind test it ;-), but anyway, this is in the category of obviously
correct fixes, so I have no problems including this without testing.
eloop_unregister_read_sock() did not exist when the code was originally
written and it just started showing up as a warning when I added
debugging code for reporting forgotten eloop entries at program
termination.
--
Jouni Malinen PGP id EFC895FA
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] hostapd: fix eloop warning
2007-08-16 1:46 ` Jouni Malinen
@ 2007-08-16 13:24 ` Johannes Berg
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Berg @ 2007-08-16 13:24 UTC (permalink / raw)
To: Jouni Malinen; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
On Wed, 2007-08-15 at 18:46 -0700, Jouni Malinen wrote:
> I cannot currently even compile driver_devicescape.c successfully never
> mind test it ;-),
Hm? I can compile it fine against the current wireless-dev tree
'everything' branch.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-08-16 13:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-15 11:08 [PATCH] hostapd: fix eloop warning Johannes Berg
2007-08-16 1:46 ` Jouni Malinen
2007-08-16 13:24 ` Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).