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>