[PATCH 3/4] hostapd: Convert some wpa_printf to wpa_msg/dbg
j at w1.fi
Sat Dec 10 09:30:12 EST 2011
On Mon, Oct 24, 2011 at 12:09:38PM -0700, greearb at candelatech.com wrote:
> This generates better log messages when running multiple
> interfaces in one process.
And unexpected crashes in wpa_supplicant AP mode..
> diff --git a/src/ap/ieee802_1x.c b/src/ap/ieee802_1x.c
> @@ -2092,8 +2092,8 @@ static void ieee802_1x_finished(struct hostapd_data *hapd,
> + wpa_dbg(hapd, MSG_DEBUG, "IEEE 802.1X: Force disconnection after "
> + "EAP-Failure");
While hapd is the context pointer in case of hostapd, this code is also
used in wpa_supplicant AP mode and any wpa_msg/dbg ctx pointer has to be
hapd->msg_ctx to avoid use of incorrect data structures.
I applied with those ctx pointers fixed.
Jouni Malinen PGP id EFC895FA
More information about the HostAP