This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 43dd6836f5 wireless/bcm43xxx: correct beacon loss behavior
43dd6836f5 is described below
commit 43dd6836f58e3e26454599f70c98c234b222c8f1
Author: chao.an <[email protected]>
AuthorDate: Sat Jun 25 04:58:29 2022 +0800
wireless/bcm43xxx: correct beacon loss behavior
Signed-off-by: chao.an <[email protected]>
---
drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c | 5 +--
drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h | 40 ++++++++++++++---------
2 files changed, 27 insertions(+), 18 deletions(-)
diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
index 573b18147e..e27730f500 100644
--- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
+++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_driver.c
@@ -619,8 +619,9 @@ void bcmf_wl_auth_event_handler(FAR struct bcmf_dev_s *priv,
status = bcmf_getle32(&event->status);
reason = bcmf_getle32(&event->reason);
- wlinfo("Got auth event %" PRId32 " status %" PRId32 " from <%s>\n",
- type, status, event->src_name);
+ wlinfo("Got auth event %" PRId32 " "
+ "status %" PRId32 " reason %" PRId32 " from <%s>\n",
+ type, status, reason, event->src_name);
if (!priv->bc_bifup)
{
diff --git a/drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h
b/drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h
index fbced6df52..c7bc9a4970 100644
--- a/drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h
+++ b/drivers/wireless/ieee80211/bcm43xxx/bcmf_ioctl.h
@@ -3294,22 +3294,30 @@ typedef enum
/* WPA failure reason codes carried in the WLC_E_PSK_SUP event */
- WLC_E_SUP_OTHER = 0 + WLC_E_SUP_REASON_OFFSET, /* Other
reason */
- WLC_E_SUP_DECRYPT_KEY_DATA = 1 + WLC_E_SUP_REASON_OFFSET, /* Decryption
of key data failed */
- WLC_E_SUP_BAD_UCAST_WEP128 = 2 + WLC_E_SUP_REASON_OFFSET, /* Illegal
use of ucast WEP128 */
- WLC_E_SUP_BAD_UCAST_WEP40 = 3 + WLC_E_SUP_REASON_OFFSET, /* Illegal
use of ucast WEP40 */
- WLC_E_SUP_UNSUP_KEY_LEN = 4 + WLC_E_SUP_REASON_OFFSET, /*
Unsupported key length */
- WLC_E_SUP_PW_KEY_CIPHER = 5 + WLC_E_SUP_REASON_OFFSET, /* Unicast
cipher mismatch in pairwise key */
- WLC_E_SUP_MSG3_TOO_MANY_IE = 6 + WLC_E_SUP_REASON_OFFSET, /* WPA IE
contains > 1 RSN IE in key msg 3 */
- WLC_E_SUP_MSG3_IE_MISMATCH = 7 + WLC_E_SUP_REASON_OFFSET, /* WPA IE
mismatch in key message 3 */
- WLC_E_SUP_NO_INSTALL_FLAG = 8 + WLC_E_SUP_REASON_OFFSET, /* INSTALL
flag unset in 4-way msg */
- WLC_E_SUP_MSG3_NO_GTK = 9 + WLC_E_SUP_REASON_OFFSET, /*
encapsulated GTK missing from msg 3 */
- WLC_E_SUP_GRP_KEY_CIPHER = 10 + WLC_E_SUP_REASON_OFFSET, /* Multicast
cipher mismatch in group key */
- WLC_E_SUP_GRP_MSG1_NO_GTK = 11 + WLC_E_SUP_REASON_OFFSET, /*
encapsulated GTK missing from group msg 1 */
- WLC_E_SUP_GTK_DECRYPT_FAIL = 12 + WLC_E_SUP_REASON_OFFSET, /* GTK
decrypt failure */
- WLC_E_SUP_SEND_FAIL = 13 + WLC_E_SUP_REASON_OFFSET, /* message
send failure */
- WLC_E_SUP_DEAUTH = 14 + WLC_E_SUP_REASON_OFFSET, /* received
FC_DEAUTH */
- WLC_E_SUP_WPA_PSK_TMO = 15 + WLC_E_SUP_REASON_OFFSET, /* WPA PSK
4-way handshake timeout */
+ WLC_E_SUP_OTHER = 0, /* Other reason */
+ WLC_E_SUP_DECRYPT_KEY_DATA = 1, /* Decryption of key data failed */
+ WLC_E_SUP_BAD_UCAST_WEP128 = 2, /* Illegal use of ucast WEP128 */
+ WLC_E_SUP_BAD_UCAST_WEP40 = 3, /* Illegal use of ucast WEP40 */
+ WLC_E_SUP_UNSUP_KEY_LEN = 4, /* Unsupported key length */
+ WLC_E_SUP_PW_KEY_CIPHER = 5, /* Unicast cipher mismatch in pairwise
key */
+ WLC_E_SUP_MSG3_TOO_MANY_IE = 6, /* WPA IE contains > 1 RSN IE in key msg
3 */
+ WLC_E_SUP_MSG3_IE_MISMATCH = 7, /* WPA IE mismatch in key message 3 */
+ WLC_E_SUP_NO_INSTALL_FLAG = 8, /* INSTALL flag unset in 4-way msg */
+ WLC_E_SUP_MSG3_NO_GTK = 9, /* encapsulated GTK missing from msg 3 */
+ WLC_E_SUP_GRP_KEY_CIPHER = 10, /* Multicast cipher mismatch in group
key */
+ WLC_E_SUP_GRP_MSG1_NO_GTK = 11, /* encapsulated GTK missing from group
msg 1 */
+ WLC_E_SUP_GTK_DECRYPT_FAIL = 12, /* GTK decrypt failure */
+ WLC_E_SUP_SEND_FAIL = 13, /* message send failure */
+ WLC_E_SUP_DEAUTH = 14, /* received FC_DEAUTH */
+ WLC_E_SUP_WPA_PSK_TMO = 15, /* WPA PSK 4-way handshake timeout */
+
+ /* Reason codes for LINK */
+
+ WLC_E_LINK_BCN_LOSS = 1, /* Link down because of beacon loss */
+ WLC_E_LINK_DISASSOC = 2, /* Link down because of disassoc */
+ WLC_E_LINK_ASSOC_REC = 3, /* Link down because assoc recreate
failed */
+ WLC_E_LINK_BSSCFG_DIS = 4, /* Link down due to bsscfg down */
+ WLC_E_LINK_ASSOC_FAIL = 5, /* Link down because assoc to new AP
during roaming failed */
DOT11_RC_RESERVED = 0 + WLC_E_DOT11_RC_REASON_OFFSET, /* d11 RC
reserved */
DOT11_RC_UNSPECIFIED = 1 + WLC_E_DOT11_RC_REASON_OFFSET, /*
Unspecified reason */