Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

staging: rtl8723bs: Fix line length

Fix some line length errors.

Co-developed-by: Annika Knepper <av91obul@stud.informatik.uni-erlangen.de>
Signed-off-by: Annika Knepper <av91obul@stud.informatik.uni-erlangen.de>
Signed-off-by: Andreas Hellmich <dy26hofu@stud.informatik.uni-erlangen.de>
Link: https://lore.kernel.org/r/20191129093939.2782-2-dy26hofu@stud.informatik.uni-erlangen.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andreas Hellmich and committed by
Greg Kroah-Hartman
4d17363d 68468503

+37 -29
+13 -11
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
··· 207 207 {0x02, 0x1F}, /* 0x57, RT_CHANNEL_DOMAIN_FCC1_FCC10 */ 208 208 }; 209 209 210 - static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the combination for max channel numbers */ 210 + /* use the combination for max channel numbers */ 211 + static RT_CHANNEL_PLAN_MAP RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; 211 212 212 - /* 213 - * Search the @param ch in given @param ch_set 213 + /* Search the @param ch in given @param ch_set 214 214 * @ch_set: the given channel set 215 215 * @ch: the given channel number 216 216 * ··· 229 229 return i; 230 230 } 231 231 232 - /* 233 - * Check the @param ch is fit with setband setting of @param adapter 232 + /* Check the @param ch is fit with setband setting of @param adapter 234 233 * @adapter: the given adapter 235 234 * @ch: the given channel number 236 235 * ··· 3355 3356 (!memcmp(pIE->data, WPS_OUI, 4))) { 3356 3357 vs_ie_length = pIE->Length; 3357 3358 if ((!padapter->registrypriv.wifi_spec) && (!memcmp(pIE->data, WPS_OUI, 4))) { 3358 - /* Commented by Kurt 20110629 */ 3359 - /* In some older APs, WPS handshake */ 3360 - /* would be fail if we append vender extensions information to AP */ 3359 + /* Commented by Kurt 20110629 3360 + * In some older APs, WPS handshake 3361 + * would be fail if we append vendor 3362 + * extensions information to AP 3363 + */ 3361 3364 3362 3365 vs_ie_length = 14; 3363 3366 } ··· 5380 5379 5381 5380 /* set_opmode_cmd(padapter, infra_client_with_mlme); */ 5382 5381 5383 - /* 5384 - * For safety, prevent from keeping macid sleep. 5382 + /* For safety, prevent from keeping macid sleep. 5385 5383 * If we can sure all power mode enter/leave are paired, 5386 5384 * this check can be removed. 5387 5385 * Lucas@20131113 ··· 6385 6385 Save_DM_Func_Flag(padapter); 6386 6386 Switch_DM_Func(padapter, DYNAMIC_FUNC_DISABLE, false); 6387 6387 6388 - /* config the initial gain under scanning, need to write the BB registers */ 6388 + /* config the initial gain under scanning, need to write the BB 6389 + * registers 6390 + */ 6389 6391 initialgain = 0x1e; 6390 6392 6391 6393 rtw_hal_set_hwreg(padapter, HW_VAR_INITIAL_GAIN, (u8 *)(&initialgain));
+7 -3
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - /****************************************************************************** 2 + /***************************************************************************** 3 3 * 4 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 5 5 * ··· 82 82 /* if (RFPath == ODM_RF_PATH_A) */ 83 83 switch (RFPath) { 84 84 case ODM_RF_PATH_A: 85 - /* write new elements A, C, D to regC80 and regC94, element B is always 0 */ 85 + /* write new elements A, C, D to regC80 and regC94, 86 + * element B is always 0 87 + */ 86 88 value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; 87 89 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XATxIQImbalance, bMaskDWord, value32); 88 90 ··· 95 93 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_ECCAThreshold, BIT24, value32); 96 94 break; 97 95 case ODM_RF_PATH_B: 98 - /* write new elements A, C, D to regC88 and regC9C, element B is always 0 */ 96 + /* write new elements A, C, D to regC88 and regC9C, 97 + * element B is always 0 98 + */ 99 99 value32 = (ele_D<<22)|((ele_C&0x3F)<<16)|ele_A; 100 100 PHY_SetBBReg(pDM_Odm->Adapter, rOFDM0_XBTxIQImbalance, bMaskDWord, value32); 101 101
+17 -15
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
··· 3191 3191 if (bmcst) 3192 3192 ptxdesc->bmc = 1; 3193 3193 3194 - /* 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS. */ 3195 - /* (1) The sequence number of each non-Qos frame / broadcast / multicast / */ 3196 - /* mgnt frame should be controlled by Hw because Fw will also send null data */ 3197 - /* which we cannot control when Fw LPS enable. */ 3198 - /* --> default enable non-Qos data sequense number. 2010.06.23. by tynli. */ 3199 - /* (2) Enable HW SEQ control for beacon packet, because we use Hw beacon. */ 3200 - /* (3) Use HW Qos SEQ to control the seq num of Ext port non-Qos packets. */ 3201 - /* 2010.06.23. Added by tynli. */ 3194 + /* 2009.11.05. tynli_test. Suggested by SD4 Filen for FW LPS. 3195 + * (1) The sequence number of each non-Qos frame / broadcast / 3196 + * multicast / mgnt frame should be controlled by Hw because Fw 3197 + * will also send null data which we cannot control when Fw LPS 3198 + * enable. 3199 + * --> default enable non-Qos data sequense number. 2010.06.23. 3200 + * by tynli. 3201 + * (2) Enable HW SEQ control for beacon packet, because we use 3202 + * Hw beacon. 3203 + * (3) Use HW Qos SEQ to control the seq num of Ext port non-Qos 3204 + * packets. 3205 + * 2010.06.23. Added by tynli. 3206 + */ 3202 3207 if (!pattrib->qos_en) /* Hw set sequence number */ 3203 3208 ptxdesc->en_hwseq = 1; /* HWSEQ_EN */ 3204 3209 } 3205 3210 3206 - /* 3207 - *Description: 3211 + /* Description: 3208 3212 * 3209 - *Parameters: 3213 + * Parameters: 3210 3214 * pxmitframe xmitframe 3211 3215 * pbuf where to fill tx desc 3212 3216 */ ··· 4333 4329 } 4334 4330 } 4335 4331 4336 - /* 4337 - *Description: 4332 + /* Description: 4338 4333 * Change default setting of specified variable. 4339 4334 */ 4340 4335 u8 SetHalDefVar8723B(struct adapter *padapter, enum HAL_DEF_VARIABLE variable, void *pval) ··· 4351 4348 return bResult; 4352 4349 } 4353 4350 4354 - /* 4355 - *Description: 4351 + /* Description: 4356 4352 * Query setting of specified variable. 4357 4353 */ 4358 4354 u8 GetHalDefVar8723B(struct adapter *padapter, enum HAL_DEF_VARIABLE variable, void *pval)