Merge branch 'bugfix/correct_action_frame' into 'master'

fix(esp_wifi): Correct frame subtype in send_mgmt_frame API

Closes WIFIBUG-520

See merge request espressif/esp-idf!30363
This commit is contained in:
Jiang Jiang Jian
2024-04-22 19:11:37 +08:00
3 changed files with 3 additions and 3 deletions

View File

@@ -870,7 +870,7 @@ int wpa_drv_send_action(struct wpa_supplicant *wpa_s,
}
req->ifx = WIFI_IF_STA;
req->subtype = WLAN_FC_STYPE_ACTION;
req->subtype = (WLAN_FC_STYPE_ACTION << 4);
req->data_len = data_len;
os_memcpy(req->data, data, req->data_len);

View File

@@ -633,7 +633,7 @@ int esp_send_sae_auth_reply(struct hostapd_data *hapd,
os_memcpy(&((uint16_t *)req->data)[3], ies, ies_len - 3 * sizeof(uint16_t));
req->ifx = WIFI_IF_AP;
req->subtype = WLAN_FC_STYPE_AUTH;
req->subtype = (WLAN_FC_STYPE_AUTH << 4);
req->data_len = ies_len;
os_memcpy(req->da, bssid, ETH_ALEN);