qcacld-3.0: Fix checkpatch warnings (QUOTED_WHITESPACE_BEFORE_NEWLINE)
Fix checkpatch warnings (QUOTED_WHITESPACE_BEFORE_NEWLINE). Change-Id: I8901c49fa48c8a9c3a9c83c6be5ff003fe0eae62 CRs-Fixed: 2126814
This commit is contained in:

committed by
snandini

parent
ea4d806da9
commit
b9086af019
@@ -2223,7 +2223,7 @@ static int hdd_get_dwell_time(struct hdd_config *pCfg, uint8_t *command,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (strncmp(command, "GETDWELLTIME", 12) == 0) {
|
if (strncmp(command, "GETDWELLTIME", 12) == 0) {
|
||||||
*len = scnprintf(extra, n, "GETDWELLTIME %u \n",
|
*len = scnprintf(extra, n, "GETDWELLTIME %u\n",
|
||||||
(int)pCfg->nActiveMaxChnTime);
|
(int)pCfg->nActiveMaxChnTime);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@@ -7938,7 +7938,7 @@ static int __iw_get_char_setnone(struct net_device *dev,
|
|||||||
buf =
|
buf =
|
||||||
scnprintf(extra + len, WE_MAX_STR_LEN - len,
|
scnprintf(extra + len, WE_MAX_STR_LEN - len,
|
||||||
"\n HDD Conn State - %s "
|
"\n HDD Conn State - %s "
|
||||||
"\n \n SME State:"
|
"\n\n SME State:"
|
||||||
"\n Neighbour Roam State - %s"
|
"\n Neighbour Roam State - %s"
|
||||||
"\n CSR State - %s"
|
"\n CSR State - %s"
|
||||||
"\n CSR Substate - %s",
|
"\n CSR Substate - %s",
|
||||||
@@ -7962,7 +7962,7 @@ static int __iw_get_char_setnone(struct net_device *dev,
|
|||||||
/* Printing Lim State starting with global lim states */
|
/* Printing Lim State starting with global lim states */
|
||||||
buf =
|
buf =
|
||||||
scnprintf(extra + len, WE_MAX_STR_LEN - len,
|
scnprintf(extra + len, WE_MAX_STR_LEN - len,
|
||||||
"\n \n LIM STATES:-"
|
"\n\n LIM STATES:-"
|
||||||
"\n Global Sme State - %s "
|
"\n Global Sme State - %s "
|
||||||
"\n Global mlm State - %s " "\n",
|
"\n Global mlm State - %s " "\n",
|
||||||
mac_trace_get_lim_sme_state
|
mac_trace_get_lim_sme_state
|
||||||
|
@@ -443,7 +443,7 @@ int dfs_attach(struct ieee80211com *ic)
|
|||||||
* is available.
|
* is available.
|
||||||
*/
|
*/
|
||||||
if (dfs_init_radar_filters(ic, &radar_info)) {
|
if (dfs_init_radar_filters(ic, &radar_info)) {
|
||||||
DFS_PRINTK(" %s: Radar Filter Intialization Failed \n",
|
DFS_PRINTK(" %s: Radar Filter Intialization Failed\n",
|
||||||
__func__);
|
__func__);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@@ -866,11 +866,11 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
break;
|
break;
|
||||||
case DFS_DISABLE_FFT:
|
case DFS_DISABLE_FFT:
|
||||||
/* UMACDFS: TODO: val = ath_hal_dfs_config_fft(sc->sc_ah, false); */
|
/* UMACDFS: TODO: val = ath_hal_dfs_config_fft(sc->sc_ah, false); */
|
||||||
DFS_PRINTK("%s TODO disable FFT val=0x%x \n", __func__, val);
|
DFS_PRINTK("%s TODO disable FFT val=0x%x\n", __func__, val);
|
||||||
break;
|
break;
|
||||||
case DFS_ENABLE_FFT:
|
case DFS_ENABLE_FFT:
|
||||||
/* UMACDFS TODO: val = ath_hal_dfs_config_fft(sc->sc_ah, true); */
|
/* UMACDFS TODO: val = ath_hal_dfs_config_fft(sc->sc_ah, true); */
|
||||||
DFS_PRINTK("%s TODO enable FFT val=0x%x \n", __func__, val);
|
DFS_PRINTK("%s TODO enable FFT val=0x%x\n", __func__, val);
|
||||||
break;
|
break;
|
||||||
case DFS_SET_DEBUG_LEVEL:
|
case DFS_SET_DEBUG_LEVEL:
|
||||||
if (insize < sizeof(uint32_t) || !indata) {
|
if (insize < sizeof(uint32_t) || !indata) {
|
||||||
@@ -878,7 +878,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dfs->dfs_debug_mask = *(uint32_t *) indata;
|
dfs->dfs_debug_mask = *(uint32_t *) indata;
|
||||||
DFS_PRINTK("%s debug level now = 0x%x \n",
|
DFS_PRINTK("%s debug level now = 0x%x\n",
|
||||||
__func__, dfs->dfs_debug_mask);
|
__func__, dfs->dfs_debug_mask);
|
||||||
if (dfs->dfs_debug_mask & ATH_DEBUG_DFS3) {
|
if (dfs->dfs_debug_mask & ATH_DEBUG_DFS3) {
|
||||||
/* Enable debug Radar Event */
|
/* Enable debug Radar Event */
|
||||||
@@ -893,7 +893,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dfs->ath_dfs_false_rssi_thres = *(uint32_t *) indata;
|
dfs->ath_dfs_false_rssi_thres = *(uint32_t *) indata;
|
||||||
DFS_PRINTK("%s false RSSI threshold now = 0x%x \n",
|
DFS_PRINTK("%s false RSSI threshold now = 0x%x\n",
|
||||||
__func__, dfs->ath_dfs_false_rssi_thres);
|
__func__, dfs->ath_dfs_false_rssi_thres);
|
||||||
break;
|
break;
|
||||||
case DFS_SET_PEAK_MAG:
|
case DFS_SET_PEAK_MAG:
|
||||||
@@ -902,7 +902,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dfs->ath_dfs_peak_mag = *(uint32_t *) indata;
|
dfs->ath_dfs_peak_mag = *(uint32_t *) indata;
|
||||||
DFS_PRINTK("%s peak_mag now = 0x%x \n",
|
DFS_PRINTK("%s peak_mag now = 0x%x\n",
|
||||||
__func__, dfs->ath_dfs_peak_mag);
|
__func__, dfs->ath_dfs_peak_mag);
|
||||||
break;
|
break;
|
||||||
case DFS_IGNORE_CAC:
|
case DFS_IGNORE_CAC:
|
||||||
@@ -915,7 +915,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
} else {
|
} else {
|
||||||
dfs->ic->ic_dfs_state.ignore_cac = 0;
|
dfs->ic->ic_dfs_state.ignore_cac = 0;
|
||||||
}
|
}
|
||||||
DFS_PRINTK("%s ignore cac = 0x%x \n",
|
DFS_PRINTK("%s ignore cac = 0x%x\n",
|
||||||
__func__, dfs->ic->ic_dfs_state.ignore_cac);
|
__func__, dfs->ic->ic_dfs_state.ignore_cac);
|
||||||
break;
|
break;
|
||||||
case DFS_SET_NOL_TIMEOUT:
|
case DFS_SET_NOL_TIMEOUT:
|
||||||
@@ -928,7 +928,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
} else {
|
} else {
|
||||||
dfs->ath_dfs_nol_timeout = DFS_NOL_TIMEOUT_S;
|
dfs->ath_dfs_nol_timeout = DFS_NOL_TIMEOUT_S;
|
||||||
}
|
}
|
||||||
DFS_PRINTK("%s nol timeout = %d sec \n",
|
DFS_PRINTK("%s nol timeout = %d sec\n",
|
||||||
__func__, dfs->ath_dfs_nol_timeout);
|
__func__, dfs->ath_dfs_nol_timeout);
|
||||||
break;
|
break;
|
||||||
#ifndef ATH_DFS_RADAR_DETECTION_ONLY
|
#ifndef ATH_DFS_RADAR_DETECTION_ONLY
|
||||||
@@ -998,7 +998,7 @@ dfs_control(struct ieee80211com *ic, u_int id,
|
|||||||
case DFS_BANGRADAR:
|
case DFS_BANGRADAR:
|
||||||
#if 0 /* MERGE_TBD */
|
#if 0 /* MERGE_TBD */
|
||||||
if (sc->sc_nostabeacons) {
|
if (sc->sc_nostabeacons) {
|
||||||
printk("No radar detection Enabled \n");
|
printk("No radar detection Enabled\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -100,7 +100,7 @@ dfs_bin_fixedpattern_check(struct ath_dfs *dfs, struct dfs_filter *rf,
|
|||||||
window_start = (start_ts + (refpri * n)) - (primargin + n);
|
window_start = (start_ts + (refpri * n)) - (primargin + n);
|
||||||
window_end = window_start + 2 * (primargin + n);
|
window_end = window_start + 2 * (primargin + n);
|
||||||
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
||||||
"window_start %u window_end %u \n",
|
"window_start %u window_end %u\n",
|
||||||
(uint32_t) window_start, (uint32_t) window_end);
|
(uint32_t) window_start, (uint32_t) window_end);
|
||||||
for (i = 0; i < pl->pl_numelems; i++) {
|
for (i = 0; i < pl->pl_numelems; i++) {
|
||||||
prev_event_ts = pl->pl_elems[index].p_time;
|
prev_event_ts = pl->pl_elems[index].p_time;
|
||||||
@@ -109,7 +109,7 @@ dfs_bin_fixedpattern_check(struct ath_dfs *dfs, struct dfs_filter *rf,
|
|||||||
next_index = (index + 1) & DFS_MAX_PULSE_BUFFER_MASK;
|
next_index = (index + 1) & DFS_MAX_PULSE_BUFFER_MASK;
|
||||||
next_event_ts = pl->pl_elems[next_index].p_time;
|
next_event_ts = pl->pl_elems[next_index].p_time;
|
||||||
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
||||||
"ts %u \n", (uint32_t) event_ts);
|
"ts %u\n", (uint32_t) event_ts);
|
||||||
if ((event_ts <= window_end)
|
if ((event_ts <= window_end)
|
||||||
&& (event_ts >= window_start)) {
|
&& (event_ts >= window_start)) {
|
||||||
deltadur =
|
deltadur =
|
||||||
@@ -118,7 +118,7 @@ dfs_bin_fixedpattern_check(struct ath_dfs *dfs, struct dfs_filter *rf,
|
|||||||
|| ((dur != 1) && (deltadur <= 2))) {
|
|| ((dur != 1) && (deltadur <= 2))) {
|
||||||
numpulses++;
|
numpulses++;
|
||||||
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
||||||
"numpulses %u \n",
|
"numpulses %u\n",
|
||||||
numpulses);
|
numpulses);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ dfs_bin_fixedpattern_check(struct ath_dfs *dfs, struct dfs_filter *rf,
|
|||||||
&& (deltadur <= 2))) {
|
&& (deltadur <= 2))) {
|
||||||
numpulses++;
|
numpulses++;
|
||||||
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
||||||
"zero PRI: numpulses %u \n",
|
"zero PRI: numpulses %u\n",
|
||||||
numpulses);
|
numpulses);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -124,7 +124,7 @@ dfs_get_pri_margin(struct ath_dfs *dfs, int is_extchan_detect,
|
|||||||
ext_chan_busy =
|
ext_chan_busy =
|
||||||
dfs->dfs_rinfo.dfs_ext_chan_busy;
|
dfs->dfs_rinfo.dfs_ext_chan_busy;
|
||||||
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
DFS_DPRINTK(dfs, ATH_DEBUG_DFS2,
|
||||||
" PRI Use cached copy of ext_chan_busy extchanbusy=%d \n",
|
" PRI Use cached copy of ext_chan_busy extchanbusy=%d\n",
|
||||||
ext_chan_busy);
|
ext_chan_busy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -491,7 +491,7 @@ int dfs_process_radarevent(struct ath_dfs *dfs,
|
|||||||
__func__, re.sidx, re.re_dur, diff_ts);
|
__func__, re.sidx, re.re_dur, diff_ts);
|
||||||
|
|
||||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
|
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
|
||||||
"\n%s: Modify pulse dur to fit valid range \n",
|
"\n%s: Modify pulse dur to fit valid range\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
||||||
re.re_dur = DFS_TYPE4_WAR_VALID_PULSE_DURATION;
|
re.re_dur = DFS_TYPE4_WAR_VALID_PULSE_DURATION;
|
||||||
@@ -528,7 +528,7 @@ int dfs_process_radarevent(struct ath_dfs *dfs,
|
|||||||
__func__, re.sidx, re.re_dur, diff_ts);
|
__func__, re.sidx, re.re_dur, diff_ts);
|
||||||
|
|
||||||
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
|
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO,
|
||||||
"%s:Modify ETSI pulse dur to valid range \n",
|
"%s:Modify ETSI pulse dur to valid range\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
||||||
re.re_dur = DFS_ETSI_WAR_VALID_PULSE_DURATION;
|
re.re_dur = DFS_ETSI_WAR_VALID_PULSE_DURATION;
|
||||||
|
@@ -138,13 +138,13 @@ typedef struct timer_list A_TIMER;
|
|||||||
extern unsigned int panic_on_assert;
|
extern unsigned int panic_on_assert;
|
||||||
#define A_ASSERT(expr) \
|
#define A_ASSERT(expr) \
|
||||||
if (!(expr)) { \
|
if (!(expr)) { \
|
||||||
printk(KERN_ALERT "Debug Assert Caught, File %s, Line: %d, Test:%s \n", __FILE__, __LINE__, # expr); \
|
printk(KERN_ALERT "Debug Assert Caught, File %s, Line: %d, Test:%s\n", __FILE__, __LINE__, # expr); \
|
||||||
if (panic_on_assert) panic(# expr); \
|
if (panic_on_assert) panic(# expr); \
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
#define A_ASSERT(expr) \
|
#define A_ASSERT(expr) \
|
||||||
if (!(expr)) { \
|
if (!(expr)) { \
|
||||||
printk(KERN_ALERT "Debug Assert Caught, File %s, Line: %d, Test:%s \n", __FILE__, __LINE__, # expr); \
|
printk(KERN_ALERT "Debug Assert Caught, File %s, Line: %d, Test:%s\n", __FILE__, __LINE__, # expr); \
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user