Skip to content

Commit 79cea90

Browse files
committed
fix(esp_wifi): Correct action frame type in send_mgmt_frame API
1 parent af302c0 commit 79cea90

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)