Ignore missing set_secure_ranging_ctx callback for testing purposes
nl80211_set_secure_ranging_ctx() was already ignoring the operation, but this is included only with CONFIG_DRIVER_NL80211_QCA=y. Make the default case use same behavior based on the callback function not being defined. This is needed to allow the following test cases to work: pasn_owe_tm_kdk_secure_ltf pasn_sae_kdk_secure_ltf Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
d54d0d8983
commit
033634019d
1 changed files with 3 additions and 1 deletions
|
@ -1155,8 +1155,10 @@ static inline int wpa_drv_set_secure_ranging_ctx(struct wpa_supplicant *wpa_s,
|
|||
{
|
||||
struct secure_ranging_params params;
|
||||
|
||||
/* Configure secure ranging context only to the drivers that support it.
|
||||
*/
|
||||
if (!wpa_s->driver->set_secure_ranging_ctx)
|
||||
return -1;
|
||||
return 0;
|
||||
|
||||
os_memset(¶ms, 0, sizeof(params));
|
||||
params.action = action;
|
||||
|
|
Loading…
Reference in a new issue