staging: rtl8723bs: rename CamelCase variable RxMgmtFrameSeqNum
PATCH RESEND 1/1 staging: rtl8723bs: rename CamelCase variable RxMgmtFrameSeqNum
Rename RxMgmtFrameSeqNum to rx_mgmt_frame_seq_num to comply with kernel coding style.
Found by checkpatch.pl
Signed-off-by Gianmaria Biselli <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 4 ++-- drivers/staging/rtl8723bs/core/rtw_sta_mgt.c | 2 +- drivers/staging/rtl8723bs/include/sta_info.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +2 -2
@@ -454,12 +454,12 @@ void mgt_dispatcher(struct adapter *padapter, union recv_frame *precv_frame)if (psta) {if (GetRetry (pframe)) { -if (precv_frame->u.hdr.attrib.seq_num == psta->RxMgmtFrameSeqNum) { +if (precv_frame->u.hdr.attrib.seq_num == psta->rx_mgmt_frame_seq_num) {/* drop the duplicate management frame */ return ; } } - psta->RxMgmtFrameSeqNum = precv_frame->u.hdr.attrib.seq_num; + psta->rx_mgmt_frame_seq_num = precv_frame->u.hdr.attrib.seq_num; }switch (GetFrameSubType (pframe)) {
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c +1 -1
@@ -256,7 +256,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, u8 *hwaddr) psta->rssi_stat.UndecoratedSmoothedCCK = (-1 );/* init for the sequence number of received management frame */ - psta->RxMgmtFrameSeqNum =0xffff ; + psta->rx_mgmt_frame_seq_num =0xffff ;spin_unlock_bh (&pstapriv->sta_hash_lock);/* alloc mac id for non-bc/mc station, */ rtw_alloc_macid (pstapriv->padapter, psta);
drivers/staging/rtl8723bs/include/sta_info.h +1 -1
@@ -214,7 +214,7 @@ struct sta_info {/* */ /* To store the sequence number of received management frame */ -u16 RxMgmtFrameSeqNum; +u16 rx_mgmt_frame_seq_num; };#define sta_rx_pkts (sta) \
Signature · 1 line
2.51.0