OCV: Use more granular error codes for OCI validation failures
Enhance the return values of ocv_verify_tx_params with enum to indicate different OCI verification failures to caller. Signed-off-by: Veerendranath Jakkam <vjakkam@codeaurora.org>
This commit is contained in:
parent
10c3e58b27
commit
5ecb45a41c
12 changed files with 40 additions and 27 deletions
|
@ -1292,7 +1292,7 @@ void mesh_mpm_action_rx(struct wpa_supplicant *wpa_s,
|
|||
|
||||
if (ocv_verify_tx_params(elems.oci, elems.oci_len, &ci,
|
||||
tx_chanwidth, tx_seg1_idx) !=
|
||||
0) {
|
||||
OCI_SUCCESS) {
|
||||
wpa_printf(MSG_WARNING, "MPM: OCV failed: %s",
|
||||
ocv_errorstr);
|
||||
return;
|
||||
|
|
|
@ -2915,7 +2915,7 @@ void sme_sa_query_rx(struct wpa_supplicant *wpa_s, const u8 *sa,
|
|||
|
||||
if (ocv_verify_tx_params(elems.oci, elems.oci_len, &ci,
|
||||
channel_width_to_int(ci.chanwidth),
|
||||
ci.seg1_idx) != 0) {
|
||||
ci.seg1_idx) != OCI_SUCCESS) {
|
||||
wpa_msg(wpa_s, MSG_INFO, OCV_FAILURE "addr=" MACSTR
|
||||
" frame=saquery%s error=%s",
|
||||
MAC2STR(sa), data[0] == WLAN_SA_QUERY_REQUEST ?
|
||||
|
|
|
@ -383,7 +383,7 @@ static void ieee802_11_rx_wnmsleep_resp(struct wpa_supplicant *wpa_s,
|
|||
|
||||
if (ocv_verify_tx_params(oci_ie, oci_ie_len, &ci,
|
||||
channel_width_to_int(ci.chanwidth),
|
||||
ci.seg1_idx) != 0) {
|
||||
ci.seg1_idx) != OCI_SUCCESS) {
|
||||
wpa_msg(wpa_s, MSG_WARNING, "WNM: OCV failed: %s",
|
||||
ocv_errorstr);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue