From: lukagejak5@gmail.com
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Luka Gejak <luka.gejak@linux.dev>
Subject: [PATCH v2 25/26] staging: rtl8723bs: core: fix line lengths in rtw_xmit.c
Date: Fri, 6 Feb 2026 08:54:38 +0100 [thread overview]
Message-ID: <20260206075439.103287-26-luka.gejak@linux.dev> (raw)
In-Reply-To: <20260206075439.103287-1-luka.gejak@linux.dev>
From: Luka Gejak <luka.gejak@linux.dev>
Break long lines exceeding 100 characters to comply with kernel coding
style.
Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
---
drivers/staging/rtl8723bs/core/rtw_xmit.c | 44 ++++++++++++++++-------
1 file changed, 32 insertions(+), 12 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index 9cead1455bfa..fdacdcf3aa98 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -435,7 +435,9 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *
pattrib->vcs_mode = padapter->driver_vcs_type;
}
-static void update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta)
+static void update_attrib_phy_info(struct adapter *padapter,
+ struct pkt_attrib *pattrib,
+ struct sta_info *psta)
{
struct mlme_ext_priv *mlmeext = &padapter->mlmeextpriv;
@@ -471,7 +473,9 @@ static void update_attrib_phy_info(struct adapter *padapter, struct pkt_attrib *
pattrib->retry_ctrl = false;
}
-static s32 update_attrib_sec_info(struct adapter *padapter, struct pkt_attrib *pattrib, struct sta_info *psta)
+static s32 update_attrib_sec_info(struct adapter *padapter,
+ struct pkt_attrib *pattrib,
+ struct sta_info *psta)
{
signed int res = _SUCCESS;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
@@ -510,8 +514,14 @@ static s32 update_attrib_sec_info(struct adapter *padapter, struct pkt_attrib *p
}
/* For WPS 1.0 WEP, driver should not encrypt EAPOL Packet for WPS handshake. */
- if (((pattrib->encrypt == _WEP40_) || (pattrib->encrypt == _WEP104_)) && (pattrib->ether_type == 0x888e))
- pattrib->encrypt = _NO_PRIVACY_;
+ {
+ bool is_wep = pattrib->encrypt == _WEP40_ ||
+ pattrib->encrypt == _WEP104_;
+ bool is_eapol = pattrib->ether_type == 0x888e;
+
+ if (is_wep && is_eapol)
+ pattrib->encrypt = _NO_PRIVACY_;
+ }
}
switch (pattrib->encrypt) {
@@ -776,15 +786,18 @@ static s32 xmitframe_addmic(struct adapter *padapter, struct xmit_frame *pxmitfr
if (pattrib->encrypt == _TKIP_) {
/* encode mic code */
{
- u8 null_key[16] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
+ static const u8 null_key[16] = {0};
pframe = pxmitframe->buf_addr + hw_hdr_offset;
if (bmcst) {
- if (!memcmp(psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey, null_key, 16))
+ u8 grpkeyid = psecuritypriv->dot118021XGrpKeyid;
+ u8 *grp_mic = psecuritypriv->dot118021XGrptxmickey[grpkeyid].skey;
+
+ if (!memcmp(grp_mic, null_key, 16))
return _FAIL;
/* start to calculate the mic code */
- rtw_secmicsetkey(&micdata, psecuritypriv->dot118021XGrptxmickey[psecuritypriv->dot118021XGrpKeyid].skey);
+ rtw_secmicsetkey(&micdata, grp_mic);
} else {
if (!memcmp(&pattrib->dot11tkiptxmickey.skey[0], null_key, 16))
return _FAIL;
@@ -1029,7 +1042,8 @@ u32 rtw_calculate_wlan_pkt_size_by_attribue(struct pkt_attrib *pattrib)
* 5. move frag chunk from pframe to pxmitframe->mem
* 6. apply sw-encrypt, if necessary.
*/
-s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct xmit_frame *pxmitframe)
+s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt,
+ struct xmit_frame *pxmitframe)
{
struct pkt_file pktfile;
@@ -1150,7 +1164,8 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct
}
/* broadcast or multicast management pkt use BIP, unicast management pkt use CCMP encryption */
-s32 rtw_mgmt_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct xmit_frame *pxmitframe)
+s32 rtw_mgmt_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt,
+ struct xmit_frame *pxmitframe)
{
u8 *pframe, *mem_start = NULL, *tmp_buf = NULL;
u8 subtype;
@@ -1764,7 +1779,9 @@ s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitfram
return _SUCCESS;
}
-struct tx_servq *rtw_get_sta_pending(struct adapter *padapter, struct sta_info *psta, signed int up, u8 *ac)
+struct tx_servq *rtw_get_sta_pending(struct adapter *padapter,
+ struct sta_info *psta,
+ signed int up, u8 *ac)
{
struct tx_servq *ptxservq = NULL;
@@ -2018,7 +2035,8 @@ inline bool xmitframe_hiq_filter(struct xmit_frame *xmitframe)
return allow;
}
-signed int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct xmit_frame *pxmitframe)
+signed int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter,
+ struct xmit_frame *pxmitframe)
{
signed int ret = false;
struct sta_info *psta = NULL;
@@ -2133,7 +2151,9 @@ signed int xmitframe_enqueue_for_sleeping_sta(struct adapter *padapter, struct x
return ret;
}
-static void dequeue_xmitframes_to_sleeping_queue(struct adapter *padapter, struct sta_info *psta, struct __queue *pframequeue)
+static void dequeue_xmitframes_to_sleeping_queue(struct adapter *padapter,
+ struct sta_info *psta,
+ struct __queue *pframequeue)
{
signed int ret;
struct list_head *plist, *phead, *tmp;
--
2.52.0
next prev parent reply other threads:[~2026-02-06 7:55 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 7:54 [PATCH v2 00/26] staging: rtl8723bs: refactor and fix various driver issues lukagejak5
2026-02-06 7:54 ` [PATCH v2 01/26] staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie lukagejak5
2026-02-07 13:45 ` Greg Kroah-Hartman
2026-02-06 7:54 ` [PATCH v2 02/26] staging: rtl8723bs: rename u1bTmp to val lukagejak5
2026-02-06 7:54 ` [PATCH v2 03/26] staging: rtl8723bs: fix spacing around operators lukagejak5
2026-02-06 7:54 ` [PATCH v2 04/26] staging: rtl8723bs: modernize hex output in rtw_report_sec_ie lukagejak5
2026-02-06 7:54 ` [PATCH v2 05/26] staging: rtl8723bs: remove dead debugging code in rtw_mlme_ext.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 06/26] staging: rtl8723bs: remove unused rtl8192c function declarations lukagejak5
2026-02-06 7:54 ` [PATCH v2 07/26] staging: rtl8723bs: remove unused RECV_BLK defines lukagejak5
2026-02-06 7:54 ` [PATCH v2 08/26] staging: rtl8723bs: remove unused MAX_PATH_NUM defines lukagejak5
2026-02-06 7:54 ` [PATCH v2 09/26] staging: rtl8723bs: convert PSTA_INFO_T to struct sta_info * lukagejak5
2026-02-06 7:54 ` [PATCH v2 10/26] staging: rtl8723bs: remove NDIS type aliases lukagejak5
2026-02-06 7:54 ` [PATCH v2 11/26] staging: rtl8723bs: remove redundant MAC_ARG macro lukagejak5
2026-02-06 7:54 ` [PATCH v2 12/26] staging: rtl8723bs: core: fix line lengths in rtw_wlan_util.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 13/26] staging: rtl8723bs: core: fix line lengths in rtw_recv.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 14/26] staging: rtl8723bs: hal: fix line lengths in HalPhyRf_8723B.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 15/26] staging: rtl8723bs: os_dep: fix line lengths in ioctl_cfg80211.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 16/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_cmd.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 17/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_hal_init.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 18/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_phycfg.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 19/26] staging: rtl8723bs: core: fix various line length overflows lukagejak5
2026-02-06 7:54 ` [PATCH v2 20/26] staging: rtl8723bs: hal: " lukagejak5
2026-02-06 7:54 ` [PATCH v2 21/26] staging: rtl8723bs: os_dep: " lukagejak5
2026-02-06 7:54 ` [PATCH v2 22/26] staging: rtl8723bs: core: fix line lengths in rtw_cmd.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 23/26] staging: rtl8723bs: core: fix line lengths in rtw_mlme_ext.c lukagejak5
2026-02-06 7:54 ` [PATCH v2 24/26] staging: rtl8723bs: core: fix line lengths in rtw_mlme.c lukagejak5
2026-02-06 7:54 ` lukagejak5 [this message]
2026-02-06 7:54 ` [PATCH v2 26/26] staging: rtl8723bs: core: fix various line length overflows lukagejak5
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260206075439.103287-26-luka.gejak@linux.dev \
--to=lukagejak5@gmail.com \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=luka.gejak@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox