Skip to content

Commit

Permalink
wireless/ieee80211: update ieee80211 header
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao authored and xiaoxiang781216 committed Jan 28, 2023
1 parent 7d54d04 commit 94db8a9
Show file tree
Hide file tree
Showing 2 changed files with 3,811 additions and 1,389 deletions.
6 changes: 3 additions & 3 deletions drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@
#define DL_END 0x0004

#define WPA_OUI_LEN 3 /* WPA OUI length */
#define WPA_VERSION 1 /* WPA version */
#define WPA_VERSION_LEN 2 /* WPA version length */
#define WLAN_WPA_OUI 0xf25000
#define WLAN_WPA_OUI_TYPE 0x01
#define WLAN_WPA_SEL(x) (((x) << 24) | WLAN_WPA_OUI)
#define WLAN_AKM_PSK 0x02
#define SUITE(oui, id) (((oui) << 8) | (id))
#define WLAN_AKM_SUITE_PSK SUITE(0x000FAC, WLAN_AKM_PSK)

/****************************************************************************
* Private Types
Expand Down Expand Up @@ -795,7 +795,7 @@ void bcmf_wl_scan_event_handler(FAR struct bcmf_dev_s *priv,

switch (ie_buffer[ie_offset])
{
case IEEE80211_ELEMID_RSN:
case WLAN_EID_RSN:
{
FAR wpa_rsn_t *rsn = (FAR wpa_rsn_t *)
&ie_buffer[ie_offset + 2];
Expand Down Expand Up @@ -828,7 +828,7 @@ void bcmf_wl_scan_event_handler(FAR struct bcmf_dev_s *priv,
break;
}

case IEEE80211_ELEMID_VENDOR:
case WLAN_EID_VENDOR_SPECIFIC:
{
FAR wpa_ie_fixed_t *ie = (FAR wpa_ie_fixed_t *)
&ie_buffer[ie_offset];
Expand Down
Loading

0 comments on commit 94db8a9

Please sign in to comment.