[PATCH 2/2] wext: Change wpa_printf to wpa_msg.
Jouni Malinen
j
Wed Feb 16 08:20:49 PST 2011
On Fri, Dec 03, 2010 at 12:56:05PM -0800, Ben Greear wrote:
> This helps us identify which interface a message pertains too.
>
> Lots of void casting in this code, so this could use a good
> review.
This is a bit problematic (same for driver_nl80211.c) since the ctx
pointer given to src/drivers/driver_*.c in init() (or hapd in hapd_init)
is not explicitly documented to be usable as the context pointer for
wpa_msg(). At the moment, it looks like this would work with the current
use cases in hostap.git, but there is no guarantee on that remaining to
be the case.
I'm not sure what would be the best approach here.. One option would be
to add a separate context pointer that is then use with wpa_msg (or
wpa_dbg) calls. Another option would be to document the limitation that
the same ctx pointer can be used for both purposes.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list