P2P: Fix handling Service Discovery Response received by GO device
The received Service Discovery Response frame follows the ap_mgmt_rx()
path in P2P GO mode. If gas_query_rx_frame() doesn't process the frame,
call the Public Action frame callbacks if any are registered for further
processing of the RX frame.
Fixes: 9c2b8204e6
("DPP: Integration for hostapd")
Signed-off-by: Shivani Baranwal <quic_shivbara@quicinc.com>
This commit is contained in:
parent
dc7e330e0b
commit
2e47ea22cc
1 changed files with 4 additions and 4 deletions
|
@ -5330,10 +5330,10 @@ static int handle_action(struct hostapd_data *hapd,
|
||||||
|
|
||||||
pos = &mgmt->u.action.u.public_action.action;
|
pos = &mgmt->u.action.u.public_action.action;
|
||||||
end = ((const u8 *) mgmt) + len;
|
end = ((const u8 *) mgmt) + len;
|
||||||
gas_query_ap_rx(hapd->gas, mgmt->sa,
|
if (gas_query_ap_rx(hapd->gas, mgmt->sa,
|
||||||
mgmt->u.action.category,
|
mgmt->u.action.category,
|
||||||
pos, end - pos, freq);
|
pos, end - pos, freq) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_DPP */
|
#endif /* CONFIG_DPP */
|
||||||
if (hapd->public_action_cb) {
|
if (hapd->public_action_cb) {
|
||||||
|
|
Loading…
Reference in a new issue