mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
wireless/ieee80211: update ieee80211 header
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -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
|
||||
@@ -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];
|
||||
@@ -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];
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user