]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
GAS server: Fix a regression in GAS server callback
authorJouni Malinen <j@w1.fi>
Sat, 16 Feb 2013 17:15:05 +0000 (19:15 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 16 Feb 2013 17:15:05 +0000 (19:15 +0200)
Commit 2d9ffe1e855410839468a75cf6723ee339acdd7e broke GAS server
callback for receiving Public Action frames. The incorrect context
pointer was used in the public_action_cb2 case. Fix this to use the
correct context pointer.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/ap/ieee802_11.c

index 129c5b5ffa9a376c9f26a27a4ffea971654eba3b..8baa15e70af9329683d4a5404cd43fb018032ea6 100644 (file)
@@ -1601,7 +1601,7 @@ static void handle_action(struct hostapd_data *hapd,
                                               hapd->iface->freq);
                }
                if (hapd->public_action_cb2) {
-                       hapd->public_action_cb2(hapd->public_action_cb_ctx,
+                       hapd->public_action_cb2(hapd->public_action_cb2_ctx,
                                                (u8 *) mgmt, len,
                                                hapd->iface->freq);
                }