Browse Source

GAS server: Fix a regression in GAS server callback

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>
Jouni Malinen 12 years ago
parent
commit
8dabf4bb46
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ap/ieee802_11.c

+ 1 - 1
src/ap/ieee802_11.c

@@ -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);
 		}