]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: wrap lines exceeding 100 characters
authorAndrei Khomenkov <khomenkov@mailbox.org>
Mon, 27 Apr 2026 17:58:46 +0000 (20:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:52:07 +0000 (16:52 +0200)
Wrap lines exceeding 100 characters to improve code readability
and conform to the Linux kernel coding style. This fixes the
LONG_LINE issues identified by checkpatch.pl.

Signed-off-by: Andrei Khomenkov <khomenkov@mailbox.org>
Link: https://patch.msgid.link/20260427175846.23470-9-khomenkov@mailbox.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c
drivers/staging/rtl8723bs/core/rtw_recv.c
drivers/staging/rtl8723bs/core/rtw_xmit.c
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index 4381df2b89d673128296724563e16f5ac68ed6fc..c07609f63e5df87a191942a70457050efb16b187 100644 (file)
@@ -1757,9 +1757,9 @@ static int rtw_check_join_candidate(struct mlme_priv *mlme
                goto exit;
 
        if (rtw_to_roam(adapter) > 0) {
-               if (jiffies_to_msecs(jiffies - competitor->last_scanned) >= mlme->roam_scanr_exp_ms ||
-                   !is_same_ess(&competitor->network, &mlme->cur_network.network)
-               )
+               if (jiffies_to_msecs(jiffies - competitor->last_scanned) >=
+                   mlme->roam_scanr_exp_ms ||
+                   !is_same_ess(&competitor->network, &mlme->cur_network.network))
                        goto exit;
        }
 
index d61b0fd4bfcd0d25953ceb7b7189a765630326e3..b3a38ffa6ef741f5dfbec13161fdd802705fe759 100644 (file)
@@ -399,7 +399,8 @@ static signed int recvframe_chkmic(struct adapter *adapter,  union recv_frame *p
                        if (bmic_err) {
                                /*  double check key_index for some timing issue , */
                                /*  cannot compare with psecuritypriv->dot118021XGrpKeyid also cause timing issue */
-                               if (is_multicast_ether_addr(prxattrib->ra)  && (prxattrib->key_index != pmlmeinfo->key_index))
+                               if (is_multicast_ether_addr(prxattrib->ra) &&
+                                   (prxattrib->key_index != pmlmeinfo->key_index))
                                        brpt_micerror = false;
 
                                if (prxattrib->bdecrypted && brpt_micerror)
@@ -2170,7 +2171,8 @@ static int recv_func(struct adapter *padapter, union recv_frame *rframe)
 
                /* check if need to enqueue into uc_swdec_pending_queue*/
                if (check_fwstate(mlmepriv, WIFI_STATION_STATE) &&
-                   !is_multicast_ether_addr(prxattrib->ra) && prxattrib->encrypt > 0 &&
+                   !is_multicast_ether_addr(prxattrib->ra) &&
+                   prxattrib->encrypt > 0 &&
                    (prxattrib->bdecrypted == 0 || psecuritypriv->sw_decrypt) &&
                    psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPAPSK &&
                    !psecuritypriv->busetkipkey) {
index 037a426ed15ec8ea594269252cedd7e5e652ec54..5251b12991acb6af974ae0384118979b48ba4b6e 100644 (file)
@@ -424,7 +424,8 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *
        } else {
                while (true) {
                        /* IOT action */
-                       if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) && pattrib->ampdu_en &&
+                       if ((pmlmeinfo->assoc_AP_vendor == HT_IOT_PEER_ATHEROS) &&
+                           pattrib->ampdu_en &&
                            (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) {
                                pattrib->vcs_mode = CTS_TO_SELF;
                                break;
index f8ba55e22638b4cce46a44944dc0fd78017fefa9..b4dd9e9d41be248602180ca3f3e24a72bcb32deb 100644 (file)
@@ -998,7 +998,8 @@ void rtl8723b_SetBeaconRelatedRegisters(struct adapter *padapter)
        rtw_write32(padapter, REG_TCR, value32);
 
        /*  NOTE: Fix test chip's bug (about contention windows's randomness) */
-       if (check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE | WIFI_ADHOC_MASTER_STATE | WIFI_AP_STATE)) {
+       if (check_fwstate(&padapter->mlmepriv, WIFI_ADHOC_STATE |
+                                              WIFI_ADHOC_MASTER_STATE | WIFI_AP_STATE)) {
                rtw_write8(padapter, REG_RXTSF_OFFSET_CCK, 0x50);
                rtw_write8(padapter, REG_RXTSF_OFFSET_OFDM, 0x50);
        }
index 9cc5199753c20d63daa67feba471bd0ead6df766..1484336d7551a08b26fb1d3be388e4bc15a828af 100644 (file)
@@ -1210,7 +1210,8 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
        spin_unlock_bh(&pwdev_priv->scan_req_lock);
 
        if (check_fwstate(pmlmepriv, WIFI_AP_STATE)) {
-               if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS | _FW_UNDER_SURVEY | _FW_UNDER_LINKING)) {
+               if (check_fwstate(pmlmepriv, WIFI_UNDER_WPS | _FW_UNDER_SURVEY |
+                                            _FW_UNDER_LINKING)) {
                        need_indicate_scan_done = true;
                        goto check_need_indicate_scan_done;
                }