OCV: Report validation errors for SA Query Request/Response in AP mode
Add a new OCV-FAILURE control interface event to notify upper layers of OCV validation issues. This commit adds this for SA Query processing in AP mode. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
52579be860
commit
d52067a5b6
2 changed files with 10 additions and 1 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "utils/common.h"
|
||||
#include "common/ieee802_11_defs.h"
|
||||
#include "common/ocv.h"
|
||||
#include "common/wpa_ctrl.h"
|
||||
#include "hostapd.h"
|
||||
#include "sta_info.h"
|
||||
#include "ap_config.h"
|
||||
|
@ -255,7 +256,11 @@ void ieee802_11_sa_query_action(struct hostapd_data *hapd,
|
|||
|
||||
if (ocv_verify_tx_params(elems.oci, elems.oci_len, &ci,
|
||||
tx_chanwidth, tx_seg1_idx) != 0) {
|
||||
wpa_printf(MSG_WARNING, "OCV failed: %s", ocv_errorstr);
|
||||
wpa_msg(hapd->msg_ctx, MSG_INFO, OCV_FAILURE "addr="
|
||||
MACSTR " frame=saquery%s error=%s",
|
||||
MAC2STR(sa),
|
||||
action_type == WLAN_SA_QUERY_REQUEST ?
|
||||
"req" : "resp", ocv_errorstr);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue