mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
qcacld-3.0: hdd: Add missing blank line after declarations
Checkpatch reported multiple instances of "Missing a blank line after declarations" in hdd, so fix them. Change-Id: I0b86be9066425d0a92f88b96e08ff4a57f91765e CRs-Fixed: 2121927
This commit is contained in:
parent
78bcd2521b
commit
4f7f7c6739
13 changed files with 32 additions and 11 deletions
|
|
@ -3790,6 +3790,7 @@ QDF_STATUS hdd_roam_deregister_tdlssta(struct hdd_adapter *adapter,
|
|||
uint8_t staId)
|
||||
{
|
||||
QDF_STATUS qdf_status;
|
||||
|
||||
qdf_status = cdp_clear_peer(cds_get_context(QDF_MODULE_ID_SOC),
|
||||
(struct cdp_pdev *)cds_get_context(QDF_MODULE_ID_TXRX),
|
||||
staId);
|
||||
|
|
|
|||
|
|
@ -5385,6 +5385,7 @@ int wlan_hdd_send_roam_auth_event(struct hdd_adapter *adapter, uint8_t *bssid,
|
|||
struct hdd_context *hdd_ctx_ptr = WLAN_HDD_GET_CTX(adapter);
|
||||
struct sk_buff *skb = NULL;
|
||||
eCsrAuthType auth_type;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (wlan_hdd_validate_context(hdd_ctx_ptr))
|
||||
|
|
@ -14544,6 +14545,7 @@ static int wlan_hdd_cfg80211_set_default_key(struct wiphy *wiphy,
|
|||
bool unicast, bool multicast)
|
||||
{
|
||||
int ret;
|
||||
|
||||
cds_ssr_protect(__func__);
|
||||
ret =
|
||||
__wlan_hdd_cfg80211_set_default_key(wiphy, ndev, key_index, unicast,
|
||||
|
|
|
|||
|
|
@ -516,6 +516,7 @@ struct power_stats_priv {
|
|||
static void hdd_power_debugstats_dealloc(void *priv)
|
||||
{
|
||||
struct power_stats_priv *stats = priv;
|
||||
|
||||
qdf_mem_free(stats->power_stats.debug_registers);
|
||||
}
|
||||
|
||||
|
|
@ -845,6 +846,7 @@ static QDF_STATUS wlan_hdd_create_power_stats_file(struct hdd_adapter *adapter)
|
|||
QDF_STATUS hdd_debugfs_init(struct hdd_adapter *adapter)
|
||||
{
|
||||
struct net_device *dev = adapter->dev;
|
||||
|
||||
adapter->debugfs_phy = debugfs_create_dir(dev->name, 0);
|
||||
|
||||
if (NULL == adapter->debugfs_phy)
|
||||
|
|
|
|||
|
|
@ -3666,6 +3666,7 @@ static __iw_softap_setparam(struct net_device *dev,
|
|||
struct hdd_context *hdd_ctx =
|
||||
WLAN_HDD_GET_CTX(adapter);
|
||||
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
|
||||
|
||||
hdd_debug("QCASAP_CLEAR_STATS val %d", set_value);
|
||||
switch (set_value) {
|
||||
case CDP_HDD_STATS:
|
||||
|
|
|
|||
|
|
@ -2170,6 +2170,7 @@ static void hdd_register_policy_manager_callback(
|
|||
struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
struct policy_mgr_hdd_cbacks hdd_cbacks;
|
||||
|
||||
hdd_cbacks.sap_restart_chan_switch_cb =
|
||||
sap_restart_chan_switch_cb;
|
||||
hdd_cbacks.wlan_hdd_get_channel_for_sap_restart =
|
||||
|
|
@ -4940,11 +4941,12 @@ static void hdd_connect_done(struct net_device *dev, const u8 *bssid,
|
|||
struct cfg80211_bss *bss, tCsrRoamInfo *roam_info,
|
||||
const u8 *req_ie, size_t req_ie_len,
|
||||
const u8 *resp_ie, size_t resp_ie_len, u16 status,
|
||||
gfp_t gfp, bool connect_timeout, tSirResultCodes
|
||||
timeout_reason, struct fils_join_rsp_params
|
||||
*roam_fils_params)
|
||||
gfp_t gfp, bool connect_timeout,
|
||||
tSirResultCodes timeout_reason,
|
||||
struct fils_join_rsp_params *roam_fils_params)
|
||||
{
|
||||
struct cfg80211_connect_resp_params fils_params;
|
||||
|
||||
qdf_mem_zero(&fils_params, sizeof(fils_params));
|
||||
|
||||
if (!roam_fils_params) {
|
||||
|
|
@ -4982,14 +4984,14 @@ static void hdd_connect_done(struct net_device *dev, const u8 *bssid,
|
|||
roam_info->fils_join_rsp = NULL;
|
||||
}
|
||||
#else
|
||||
static inline void hdd_connect_done(struct net_device *dev, const u8 *bssid,
|
||||
struct cfg80211_bss *bss, tCsrRoamInfo
|
||||
*roam_info, const u8 *req_ie,
|
||||
size_t req_ie_len, const u8 *resp_ie,
|
||||
size_t resp_ie_len, u16 status, gfp_t gfp,
|
||||
bool connect_timeout, tSirResultCodes
|
||||
timeout_reason, struct fils_join_rsp_params
|
||||
*roam_fils_params)
|
||||
static inline void
|
||||
hdd_connect_done(struct net_device *dev, const u8 *bssid,
|
||||
struct cfg80211_bss *bss, tCsrRoamInfo *roam_info,
|
||||
const u8 *req_ie, size_t req_ie_len,
|
||||
const u8 *resp_ie, size_t resp_ie_len, u16 status,
|
||||
gfp_t gfp, bool connect_timeout,
|
||||
tSirResultCodes timeout_reason,
|
||||
struct fils_join_rsp_params *roam_fils_params)
|
||||
{ }
|
||||
|
||||
static inline void hdd_update_hlp_info(struct net_device *dev,
|
||||
|
|
|
|||
|
|
@ -2311,6 +2311,7 @@ void hdd_ndi_close(uint8_t vdev_id)
|
|||
{
|
||||
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
||||
struct hdd_adapter *adapter = hdd_get_adapter_by_vdev(hdd_ctx, vdev_id);
|
||||
|
||||
hdd_close_ndi(adapter);
|
||||
}
|
||||
|
||||
|
|
@ -2336,6 +2337,7 @@ int hdd_ndp_get_peer_idx(uint8_t vdev_id, struct qdf_mac_addr *addr)
|
|||
struct hdd_context *hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
||||
struct hdd_adapter *adapter = hdd_get_adapter_by_vdev(hdd_ctx, vdev_id);
|
||||
struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
|
||||
|
||||
return hdd_get_peer_idx(sta_ctx, addr);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -184,6 +184,7 @@ int hdd_napi_destroy(int force)
|
|||
}
|
||||
} else {
|
||||
struct hif_opaque_softc *hif_ctx;
|
||||
|
||||
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
|
||||
if (unlikely(NULL == hif_ctx))
|
||||
|
|
|
|||
|
|
@ -1219,6 +1219,7 @@ __wlan_hdd_cfg80211_cancel_remain_on_channel(struct wiphy *wiphy,
|
|||
qdf_list_node_t *tmp, *q;
|
||||
struct hdd_roc_req *curr_roc_req;
|
||||
uint32_t roc_scan_id;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
|
|
@ -1450,6 +1451,7 @@ static int __wlan_hdd_mgmt_tx(struct wiphy *wiphy, struct wireless_dev *wdev,
|
|||
struct hdd_adapter *goAdapter;
|
||||
uint16_t current_freq;
|
||||
uint8_t home_ch = 0;
|
||||
|
||||
ENTER();
|
||||
|
||||
if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
|
||||
|
|
|
|||
|
|
@ -146,6 +146,7 @@ extern struct notifier_block hdd_netdev_notifier;
|
|||
static void hdd_enable_gtk_offload(struct hdd_adapter *adapter)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
|
||||
status = pmo_ucfg_enable_gtk_offload_in_fwr(adapter->hdd_vdev);
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
hdd_info("Failed to enable gtk offload");
|
||||
|
|
@ -1070,6 +1071,7 @@ hdd_suspend_wlan(void)
|
|||
struct hdd_adapter *adapter = NULL;
|
||||
hdd_adapter_list_node_t *pAdapterNode = NULL, *pNext = NULL;
|
||||
uint32_t conn_state_mask = 0;
|
||||
|
||||
hdd_info("WLAN being suspended by OS");
|
||||
|
||||
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ static void hdd_request_destroy(struct hdd_request *request)
|
|||
params = &request->params;
|
||||
if (params->dealloc) {
|
||||
void *priv = hdd_request_priv(request);
|
||||
|
||||
params->dealloc(priv);
|
||||
}
|
||||
qdf_event_destroy(&request->completed);
|
||||
|
|
|
|||
|
|
@ -4575,6 +4575,7 @@ static bool wlan_hdd_update_survey_info(struct wiphy *wiphy,
|
|||
|
||||
for (j = 0; j < wiphy->bands[i]->n_channels && !filled; j++) {
|
||||
struct ieee80211_supported_band *band = wiphy->bands[i];
|
||||
|
||||
filled = wlan_fill_survey_result(survey, opfreq,
|
||||
&hdd_ctx->chan_info[idx],
|
||||
&band->channels[j]);
|
||||
|
|
|
|||
|
|
@ -8188,6 +8188,7 @@ static int __iw_setint_getnone(struct net_device *dev,
|
|||
case WE_SET_PHYMODE:
|
||||
{
|
||||
struct hdd_context *phddctx = WLAN_HDD_GET_CTX(adapter);
|
||||
|
||||
if (!hHal)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -8374,6 +8375,7 @@ static int __iw_setint_getnone(struct net_device *dev,
|
|||
{
|
||||
bool chwidth = false;
|
||||
struct hdd_context *phddctx = WLAN_HDD_GET_CTX(adapter);
|
||||
|
||||
if (!hHal)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
@ -9012,6 +9014,7 @@ static int __iw_setint_getnone(struct net_device *dev,
|
|||
case WE_SET_DEBUG_LOG:
|
||||
{
|
||||
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
|
||||
|
||||
if (!hHal)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ static uint8_t g_hdd_wowl_ptrns_count;
|
|||
static inline int find_ptrn_len(const char *ptrn)
|
||||
{
|
||||
int len = 0;
|
||||
|
||||
while (*ptrn != '\0' && *ptrn != WOWL_INTER_PTRN_TOKENIZER) {
|
||||
len++;
|
||||
ptrn++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue