Skip to content

Commit 7cbbabb

Browse files
committed
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
2 parents af302c0 + 79cea90 commit 7cbbabb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/wpa_supplicant/esp_supplicant/src/esp_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ int wpa_drv_send_action(struct wpa_supplicant *wpa_s,
870870
}
871871

872872
req->ifx = WIFI_IF_STA;
873-
req->subtype = WLAN_FC_STYPE_ACTION;
873+
req->subtype = (WLAN_FC_STYPE_ACTION << 4);
874874
req->data_len = data_len;
875875
os_memcpy(req->data, data, req->data_len);
876876

components/wpa_supplicant/esp_supplicant/src/esp_wpa3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ int esp_send_sae_auth_reply(struct hostapd_data *hapd,
633633
os_memcpy(&((uint16_t *)req->data)[3], ies, ies_len - 3 * sizeof(uint16_t));
634634

635635
req->ifx = WIFI_IF_AP;
636-
req->subtype = WLAN_FC_STYPE_AUTH;
636+
req->subtype = (WLAN_FC_STYPE_AUTH << 4);
637637
req->data_len = ies_len;
638638
os_memcpy(req->da, bssid, ETH_ALEN);
639639

0 commit comments

Comments
 (0)