]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Respond to GAS on the same channel it was received on
authorMichal Kazior <michal@plume.com>
Wed, 3 Mar 2021 09:53:33 +0000 (09:53 +0000)
committerJouni Malinen <j@w1.fi>
Sun, 18 Dec 2022 19:07:56 +0000 (21:07 +0200)
commitd9d5e55c5484b7a206efb7958b5b3ed72ef8a47a
treec812f6f9670440027f47870986c03c1aae02563b
parent651c9e957805c3ca9f9be01e148c47ee7a7ff843
DPP: Respond to GAS on the same channel it was received on

When I was testing dpp_auth_init on an AP with Enrollee on a different
channel from the AP I was getting failures. This happened on hwsim in
UML with time-travel for me. I don't recall seeing this with real
devices, presumably because of lax offchan implementation.

The DPP authentication would succeed. However the station would then try
to get configuration through a GAS request and fail.

The AP reported the following logs (grepped):

1614762426.860212: RX_ACTION category 4 action 10 sa 02:00:00:00:01:00 da 02:00:00:00:00:00 len 227 freq 2412
1614762426.860212: wlan0: GAS: GAS Initial Request from 02:00:00:00:01:00 (dialog token 239)
1614762426.860233: DPP: Wait for Configuration Result
1614762426.860234: nl80211: Send Action frame (ifindex=5, freq=2462 MHz wait=0 ms no_cck=0 offchanok=0)
1614762428.861186: DPP: Timeout while waiting for Configuration Result
1614762428.861186: wlan0: DPP-CONF-FAILED

While the STA reported the following logs (grepped):

1614762426.860193: wlan1: DPP-AUTH-SUCCESS init=0
1614762426.860195: DPP: Stop listen on 2412 MHz
1614762426.860202: wlan1: GAS-QUERY-START addr=02:00:00:00:00:00 dialog_token=239 freq=2412
1614762428.861185: GAS: No response received for query to 02:00:00:00:00:00 dialog token 239
1614762428.861189: DPP: GAS query did not succeed
1614762428.861189: wlan1: DPP-CONF-FAILED

AP would still receive the GAS request on ch1 but would then try to
respond on ch11 while STA was waiting on ch1.

Signed-off-by: Michal Kazior <michal@plume.com>
src/ap/dpp_hostapd.c
src/ap/gas_serv.c
src/ap/gas_serv.h