From patchwork Mon Jun 24 11:49:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012929 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C19D514BB for ; Mon, 24 Jun 2019 11:49:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFB5128ADC for ; Mon, 24 Jun 2019 11:49:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A205A28BB5; Mon, 24 Jun 2019 11:49:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B16AA28ADC for ; Mon, 24 Jun 2019 11:49:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=o0xQHmkbnS9WfWTeWqz3T+EsWY03IADQPYotEbpdNhk=; b=LCV q8e074NzUBNKATtcAEWoJC07CQUv6lt+UtX6cG/tyJ3AIwetmDzzjleCXTJ8oWkRELYBydS0h2ucg OML2mUQhRgLucgInpmz4/nOEvV4TkbD5BFkrc4/mwCttFu3p9v0Pf4aEzI1yddIC7CdFFJsrD4bfi i1lc6o1XSXi96Vd4juymOtuFXY497LTXOoXNDaBJ/CRXdB7jFx370+pWKoc6ev9H2cJPmdDOkA351 Id16t5F3LVNRgHGpXps0pA4+lgQwPg1Ne8j779yk6w4M7rpfW7BAH8jV82sNj5uoHxkZDduRiBmY0 sOM7I6cJ9/SiZ2eGbflqDw3LfpkiTlg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTr-0004zj-2D; Mon, 24 Jun 2019 11:49:51 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTn-0004zQ-JD for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:49:49 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 0365E6020A; Mon, 24 Jun 2019 11:49:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376987; bh=glGBuNNJYMxYQQnD4AyAiMF78zIy3GCmUqpQW2G3xMQ=; h=From:To:Cc:Subject:Date:From; b=ezP/Xvt6sm6b/4mR2Ej2U8z/uOlPV6uCUDFIcP5Q+9M4SCy3BaC1tpD6HYF+7yc06 CRwwAN8wHCBAp0+EKU/d0SZcTiFUM927GMGWqihNBUiNQBGGzFituFLiDbp2bmm95I ey+Q3uiPzLmzOHYYj813sS0MImm447fPFyNBGbS0= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DB2866016D; Mon, 24 Jun 2019 11:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376986; bh=glGBuNNJYMxYQQnD4AyAiMF78zIy3GCmUqpQW2G3xMQ=; h=From:To:Cc:Subject:Date:From; b=EUI3vemi9L+v9DR4RXdTRncrpYacEi/G7P+ceWwpaL5WrnNSHkq3HjXqY0HPujpUj hrfuybuz3lxxHlrD+mZo8Gknkz/nMiCFPgJnEHiRS3w82JsA0O2yJZTVG+mk4iJ/FA vI+VCNt0eUrcatih4dBDNaxKh+oRrvTK07BEuMDM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DB2866016D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 1/8] ath11k: correct prefix for public functions in mac.c Date: Mon, 24 Jun 2019 17:19:22 +0530 Message-Id: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_044947_670509_081A791E X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use ath11k_mac_ prefix for all public functions defined in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/core.c | 4 +-- drivers/net/wireless/ath/ath11k/debug.c | 2 +- drivers/net/wireless/ath/ath11k/debug_htt_stats.c | 2 +- drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +- drivers/net/wireless/ath/ath11k/mac.c | 32 ++++++++++----------- drivers/net/wireless/ath/ath11k/mac.h | 20 ++++++------- drivers/net/wireless/ath/ath11k/wmi.c | 34 +++++++++++------------ 7 files changed, 48 insertions(+), 48 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/core.c b/drivers/net/wireless/ath/ath11k/core.c index 74384b3..8fa18a7 100644 --- a/drivers/net/wireless/ath/ath11k/core.c +++ b/drivers/net/wireless/ath/ath11k/core.c @@ -577,7 +577,7 @@ void ath11k_core_halt(struct ath11k *ar) ar->num_created_vdevs = 0; - ath11k_scan_finish(ar); + ath11k_mac_scan_finish(ar); ath11k_mac_peer_cleanup_all(ar); cancel_delayed_work_sync(&ar->scan.timeout); cancel_work_sync(&ar->regd_update_work); @@ -606,7 +606,7 @@ static void ath11k_core_restart(struct work_struct *work) continue; ieee80211_stop_queues(ar->hw); - ath11k_drain_tx(ar); + ath11k_mac_drain_tx(ar); complete(&ar->scan.started); complete(&ar->scan.completed); complete(&ar->peer_assoc_done); diff --git a/drivers/net/wireless/ath/ath11k/debug.c b/drivers/net/wireless/ath/ath11k/debug.c index f8081da..6aa260c 100644 --- a/drivers/net/wireless/ath/ath11k/debug.c +++ b/drivers/net/wireless/ath/ath11k/debug.c @@ -191,7 +191,7 @@ void ath11k_debug_fw_stats_process(struct ath11k_base *ab, u8 *evt_buf, u32 len) } rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, stats.pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, stats.pdev_id); if (!ar) { rcu_read_unlock(); ath11k_warn(ab, "failed to get ar for pdev_id %d: %d\n", diff --git a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c index 66a5f2d..a9dffd1 100644 --- a/drivers/net/wireless/ath/ath11k/debug_htt_stats.c +++ b/drivers/net/wireless/ath/ath11k/debug_htt_stats.c @@ -4296,7 +4296,7 @@ void ath11k_dbg_htt_ext_stats_handler(struct ath11k_base *ab, pdev_id = FIELD_GET(HTT_STATS_COOKIE_LSB, cookie); rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, pdev_id); rcu_read_unlock(); if (!ar) { ath11k_warn(ab, "failed to get ar for pdev_id %d\n", pdev_id); diff --git a/drivers/net/wireless/ath/ath11k/dp_rx.c b/drivers/net/wireless/ath/ath11k/dp_rx.c index afe8399..3452e53 100644 --- a/drivers/net/wireless/ath/ath11k/dp_rx.c +++ b/drivers/net/wireless/ath/ath11k/dp_rx.c @@ -1247,7 +1247,7 @@ static int ath11k_htt_pull_ppdu_stats(struct ath11k_base *ab, ppdu_id = msg->ppdu_id; rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, pdev_id); if (!ar) { ret = -EINVAL; goto exit; diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 7a6c927..2e87b1a 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -345,7 +345,7 @@ static void ath11k_get_arvif_iter(void *data, u8 *mac, arvif_iter->arvif = arvif; } -struct ath11k_vif *ath11k_get_arvif(struct ath11k *ar, u32 vdev_id) +struct ath11k_vif *ath11k_mac_get_arvif(struct ath11k *ar, u32 vdev_id) { struct ath11k_vif_iter arvif_iter; u32 flags; @@ -364,8 +364,8 @@ struct ath11k_vif *ath11k_get_arvif(struct ath11k *ar, u32 vdev_id) return arvif_iter.arvif; } -struct ath11k_vif *ath11k_get_arvif_by_vdev_id(struct ath11k_base *ab, - u32 vdev_id) +struct ath11k_vif *ath11k_mac_get_arvif_by_vdev_id(struct ath11k_base *ab, + u32 vdev_id) { int i; struct ath11k_pdev *pdev; @@ -377,7 +377,7 @@ struct ath11k_vif *ath11k_get_arvif_by_vdev_id(struct ath11k_base *ab, for (i = 0; i < ab->num_radios; i++) { pdev = rcu_dereference(ab->pdevs_active[i]); if (pdev && pdev->ar) { - arvif = ath11k_get_arvif(pdev->ar, vdev_id); + arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); if (arvif) return arvif; } @@ -386,7 +386,7 @@ struct ath11k_vif *ath11k_get_arvif_by_vdev_id(struct ath11k_base *ab, return NULL; } -struct ath11k *ath11k_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) +struct ath11k *ath11k_mac_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) { int i; struct ath11k_pdev *pdev; @@ -398,7 +398,7 @@ struct ath11k *ath11k_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) for (i = 0; i < ab->num_radios; i++) { pdev = rcu_dereference(ab->pdevs_active[i]); if (pdev && pdev->ar) { - arvif = ath11k_get_arvif(pdev->ar, vdev_id); + arvif = ath11k_mac_get_arvif(pdev->ar, vdev_id); if (arvif) return arvif->ar; } @@ -407,7 +407,7 @@ struct ath11k *ath11k_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id) return NULL; } -struct ath11k *ath11k_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id) +struct ath11k *ath11k_mac_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id) { int i; struct ath11k_pdev *pdev; @@ -428,8 +428,8 @@ struct ath11k *ath11k_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id) return NULL; } -struct ath11k *ath11k_get_ar_vdev_stop_status(struct ath11k_base *ab, - u32 vdev_id) +struct ath11k *ath11k_mac_get_ar_vdev_stop_status(struct ath11k_base *ab, + u32 vdev_id) { int i; struct ath11k_pdev *pdev; @@ -1790,7 +1790,7 @@ static void ath11k_bss_info_changed(struct ieee80211_hw *hw, /* Scanning */ /************/ -void __ath11k_scan_finish(struct ath11k *ar) +void __ath11k_mac_scan_finish(struct ath11k *ar) { lockdep_assert_held(&ar->data_lock); @@ -1820,10 +1820,10 @@ void __ath11k_scan_finish(struct ath11k *ar) } } -void ath11k_scan_finish(struct ath11k *ar) +void ath11k_mac_scan_finish(struct ath11k *ar) { spin_lock_bh(&ar->data_lock); - __ath11k_scan_finish(ar); + __ath11k_mac_scan_finish(ar); spin_unlock_bh(&ar->data_lock); } @@ -1865,7 +1865,7 @@ static int ath11k_scan_stop(struct ath11k *ar) */ spin_lock_bh(&ar->data_lock); if (ar->scan.state != ATH11K_SCAN_IDLE) - __ath11k_scan_finish(ar); + __ath11k_mac_scan_finish(ar); spin_unlock_bh(&ar->data_lock); return ret; @@ -3457,7 +3457,7 @@ static void ath11k_mac_op_tx(struct ieee80211_hw *hw, } } -void ath11k_drain_tx(struct ath11k *ar) +void ath11k_mac_drain_tx(struct ath11k *ar) { /* make sure rcu-protected mac80211 tx path itself is drained */ synchronize_net(); @@ -3488,7 +3488,7 @@ static int ath11k_start(struct ieee80211_hw *hw) struct ath11k_pdev *pdev = ar->pdev; int ret; - ath11k_drain_tx(ar); + ath11k_mac_drain_tx(ar); mutex_lock(&ar->conf_mutex); switch (ar->state) { @@ -3591,7 +3591,7 @@ static void ath11k_stop(struct ieee80211_hw *hw) struct htt_ppdu_stats_info *ppdu_stats, *tmp; int ret; - ath11k_drain_tx(ar); + ath11k_mac_drain_tx(ar); mutex_lock(&ar->conf_mutex); ret = ath11k_mac_config_mon_status_default(ar, false); diff --git a/drivers/net/wireless/ath/ath11k/mac.h b/drivers/net/wireless/ath/ath11k/mac.h index f6f8047..071fcbc 100644 --- a/drivers/net/wireless/ath/ath11k/mac.h +++ b/drivers/net/wireless/ath/ath11k/mac.h @@ -176,20 +176,20 @@ u8 ath11k_mac_bitrate_to_idx(const struct ieee80211_supported_band *sband, u8 ath11k_mac_hw_rate_to_idx(const struct ieee80211_supported_band *sband, u8 hw_rate, bool cck); -void __ath11k_scan_finish(struct ath11k *ar); -void ath11k_scan_finish(struct ath11k *ar); +void __ath11k_mac_scan_finish(struct ath11k *ar); +void ath11k_mac_scan_finish(struct ath11k *ar); -struct ath11k_vif *ath11k_get_arvif(struct ath11k *ar, u32 vdev_id); -struct ath11k_vif *ath11k_get_arvif_by_vdev_id(struct ath11k_base *ab, - u32 vdev_id); -struct ath11k *ath11k_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id); -struct ath11k *ath11k_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id); -struct ath11k *ath11k_get_ar_vdev_stop_status(struct ath11k_base *ab, - u32 vdev_id); +struct ath11k_vif *ath11k_mac_get_arvif(struct ath11k *ar, u32 vdev_id); +struct ath11k_vif *ath11k_mac_get_arvif_by_vdev_id(struct ath11k_base *ab, + u32 vdev_id); +struct ath11k *ath11k_mac_get_ar_by_vdev_id(struct ath11k_base *ab, u32 vdev_id); +struct ath11k *ath11k_mac_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id); +struct ath11k *ath11k_mac_get_ar_vdev_stop_status(struct ath11k_base *ab, + u32 vdev_id); void ath11k_mgmt_over_wmi_tx_work(struct work_struct *work); void ath11k_mgmt_over_wmi_tx_purge(struct ath11k *ar); -void ath11k_drain_tx(struct ath11k *ar); +void ath11k_mac_drain_tx(struct ath11k *ar); void ath11k_mac_peer_cleanup_all(struct ath11k *ar); int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx); #endif diff --git a/drivers/net/wireless/ath/ath11k/wmi.c b/drivers/net/wireless/ath/ath11k/wmi.c index f800c77..eee3d82 100644 --- a/drivers/net/wireless/ath/ath11k/wmi.c +++ b/drivers/net/wireless/ath/ath11k/wmi.c @@ -3432,7 +3432,7 @@ static void ath11k_wmi_event_scan_start_failed(struct ath11k *ar) break; case ATH11K_SCAN_STARTING: complete(&ar->scan.started); - __ath11k_scan_finish(ar); + __ath11k_mac_scan_finish(ar); break; } } @@ -3458,7 +3458,7 @@ static void ath11k_wmi_event_scan_completed(struct ath11k *ar) break; case ATH11K_SCAN_RUNNING: case ATH11K_SCAN_ABORTING: - __ath11k_scan_finish(ar); + __ath11k_mac_scan_finish(ar); break; } } @@ -4263,7 +4263,7 @@ ath11k_wmi_fw_vdev_stats_fill(struct ath11k *ar, { u32 len = *length; u32 buf_len = ATH11K_FW_STATS_BUF_SIZE; - struct ath11k_vif *arvif = ath11k_get_arvif(ar, vdev->vdev_id); + struct ath11k_vif *arvif = ath11k_mac_get_arvif(ar, vdev->vdev_id); u8 *vif_macaddr; int i; @@ -4383,7 +4383,7 @@ ath11k_wmi_fw_bcn_stats_fill(struct ath11k *ar, { u32 len = *length; u32 buf_len = ATH11K_FW_STATS_BUF_SIZE; - struct ath11k_vif *arvif = ath11k_get_arvif(ar, bcn->vdev_id); + struct ath11k_vif *arvif = ath11k_mac_get_arvif(ar, bcn->vdev_id); u8 *vdev_macaddr; if (arvif) { @@ -4724,7 +4724,7 @@ static void ath11k_vdev_start_resp_event(struct ath11k_base *ab, u8 *evt_buf, u3 } rcu_read_lock(); - ar = ath11k_get_ar_by_vdev_id(ab, vdev_start_resp.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, vdev_start_resp.vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in vdev start resp ev %d", vdev_start_resp.vdev_id); @@ -4773,7 +4773,7 @@ static void ath11k_vdev_stopped_event(struct ath11k_base *ab, u8 *evt_buf, u32 l } rcu_read_lock(); - ar = ath11k_get_ar_vdev_stop_status(ab, vdev_id); + ar = ath11k_mac_get_ar_vdev_stop_status(ab, vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in vdev stopped ev %d", vdev_id); @@ -4809,7 +4809,7 @@ static void ath11k_mgmt_rx_event(struct ath11k_base *ab, struct sk_buff *skb) rx_ev.status); rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, rx_ev.pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, rx_ev.pdev_id); if (!ar) { ath11k_warn(ab, "invalid pdev_id %d in mgmt_rx_event\n", @@ -4911,7 +4911,7 @@ static void ath11k_mgmt_tx_compl_event(struct ath11k_base *ab, struct sk_buff *s } rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, tx_compl_param.pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, tx_compl_param.pdev_id); if (!ar) { ath11k_warn(ab, "invalid pdev id %d in mgmt_tx_compl_event\n", tx_compl_param.pdev_id); @@ -4977,7 +4977,7 @@ static void ath11k_scan_event(struct ath11k_base *ab, u8 *evt_buf, u32 len) scan_ev.reason == WMI_SCAN_REASON_CANCELLED) ar = ath11k_get_ar_on_scan_abort(ab, scan_ev.vdev_id); else - ar = ath11k_get_ar_by_vdev_id(ab, scan_ev.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, scan_ev.vdev_id); if (!ar) { ath11k_warn(ab, "Received scan event for unknown vdev"); @@ -5049,7 +5049,7 @@ static void ath11k_peer_sta_kickout_event(struct ath11k_base *ab, u8 *evt_buf, u goto exit; } - ar = ath11k_get_ar_by_vdev_id(ab, peer->vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, peer->vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in peer sta kickout ev %d", peer->vdev_id); @@ -5089,7 +5089,7 @@ static void ath11k_roam_event(struct ath11k_base *ab, u8 *evt_buf, u32 len) roam_ev.vdev_id, roam_ev.reason, roam_ev.rssi); rcu_read_lock(); - ar = ath11k_get_ar_by_vdev_id(ab, roam_ev.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, roam_ev.vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in roam ev %d", roam_ev.vdev_id); @@ -5147,7 +5147,7 @@ static void ath11k_chan_info_event(struct ath11k_base *ab, u8 *evt_buf, u32 len) } rcu_read_lock(); - ar = ath11k_get_ar_by_vdev_id(ab, ch_info_ev.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, ch_info_ev.vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in chan info ev %d", ch_info_ev.vdev_id); @@ -5231,7 +5231,7 @@ ath11k_pdev_bss_chan_info_event(struct ath11k_base *ab, u8 *evt_buf, u32 len) tx, rx, rx_bss); rcu_read_lock(); - ar = ath11k_get_ar_by_pdev_id(ab, bss_ch_info_ev.pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, bss_ch_info_ev.pdev_id); if (!ar) { ath11k_warn(ab, "invalid pdev id %d in bss_chan_info event\n", @@ -5285,7 +5285,7 @@ static void ath11k_vdev_install_key_compl_event(struct ath11k_base *ab, u8 *evt_ install_key_compl.macaddr, install_key_compl.status); rcu_read_lock(); - ar = ath11k_get_ar_by_vdev_id(ab, install_key_compl.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, install_key_compl.vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in install key compl ev %d", install_key_compl.vdev_id); @@ -5357,7 +5357,7 @@ static void ath11k_peer_assoc_conf_event(struct ath11k_base *ab, u8 *evt_buf, u3 "peer assoc conf ev vdev id %d macaddr %pM\n", peer_assoc_conf.vdev_id, peer_assoc_conf.macaddr); - ar = ath11k_get_ar_by_vdev_id(ab, peer_assoc_conf.vdev_id); + ar = ath11k_mac_get_ar_by_vdev_id(ab, peer_assoc_conf.vdev_id); if (!ar) { ath11k_warn(ab, "invalid vdev id in peer assoc conf ev %d", @@ -5425,7 +5425,7 @@ ath11k_wmi_process_csa_switch_count_event(struct ath11k_base *ab, rcu_read_lock(); for (i = 0; i < ev->num_vdevs; i++) { - arvif = ath11k_get_arvif_by_vdev_id(ab, vdev_ids[i]); + arvif = ath11k_mac_get_arvif_by_vdev_id(ab, vdev_ids[i]); if (!arvif) { ath11k_warn(ab, "Recvd csa status for unknown vdev %d", @@ -5506,7 +5506,7 @@ ath11k_wmi_pdev_dfs_radar_detected_event(struct ath11k_base *ab, ev->detector_id, ev->segment_id, ev->timestamp, ev->is_chirp, ev->freq_offset, ev->sidx); - ar = ath11k_get_ar_by_pdev_id(ab, ev->pdev_id); + ar = ath11k_mac_get_ar_by_pdev_id(ab, ev->pdev_id); if (!ar) { ath11k_warn(ab, "radar detected in invalid pdev %d\n", From patchwork Mon Jun 24 11:49:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012931 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7CC3C14BB for ; Mon, 24 Jun 2019 11:49:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CFF528ADC for ; Mon, 24 Jun 2019 11:49:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6103C28BB5; Mon, 24 Jun 2019 11:49:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 10B9028ADC for ; Mon, 24 Jun 2019 11:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=u7GdpKIBXpaYDOuvRk6OpAxus5dhQ2keEqgLsl7xWKU=; b=or2C8/jXFEDCvAnEtvcwBuD/I5 +eyq5b+FkKWFwj6TRsSIcBuqpHRZVzcMwmB8+aVx2AR9fAjTJZTvP4aCFxk0LfBmYUH7p5lirE1Ge LRFX83nDfGE8WjpMj01fET6qCLV9Q/iCb2K5XrQ29EsMh5OLtiPn4YdYlnk8b0lCghnaJ4xmUtkVh uTdq7BpM4OgYyYNBgxW8hgueLDHpclW9mPJSO32EgocB6Ufl0au1jOVAI3gDa8RIkwyy6XBNH5dHq KKr9M2vPZ9OI+PNaYFHgVTiOI8x1jijBOhfJJ4fpqpw2bp4+9Wyxp1cgRCpAA8jh+4XKHlyiuCpAh r5NydYKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTv-00051T-DP; Mon, 24 Jun 2019 11:49:55 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTt-00050c-24 for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:49:54 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C6312609D4; Mon, 24 Jun 2019 11:49:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376992; bh=wAkDslQBKlWDQNnQou1pcN0BpMux6c+9ClvY4hog5Zs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DFkqLKZCnAjgZQ8NX4Bdg6lniF3tYicb9/lz5yCZgO+wImH8b4Q65/dTqxtGO+1aj XtuV9+/csDD97s1VYrVSSj3brD6VkSp+HXW7TYveKQpdVjPa8j5fSxjHAVQq8PdFB4 cgu+sx+WuDkGcZxTu8SxzC3NiakQqXAkOFqJUmxk= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F283D6070D; Mon, 24 Jun 2019 11:49:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376991; bh=wAkDslQBKlWDQNnQou1pcN0BpMux6c+9ClvY4hog5Zs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mZjbMBQcfcm9c6QgAl/k/UxSNCP3/QwBx9u7gFObj6F2Rxl3yY7rN2PQJuvJxevx+ pHtp64fH1s/sw7111R2TV4B5/60uPkZifoy6YTQoiKKKhOWJvy1zbSMvKjCQ3FPqIL ILVxwqEm57zthB8KB5mG3A7IkbRuEWAKjj2TDTDc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F283D6070D Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 2/8] ath11k: make ath11k_mgmt_over_wmi_tx_*() functions static Date: Mon, 24 Jun 2019 17:19:23 +0530 Message-Id: <1561376969-3999-2-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_044953_130595_E742CA23 X-CRM114-Status: UNSURE ( 8.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP make ath11k_mgmt_over_wmi_tx_*() functions static in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 4 ++-- drivers/net/wireless/ath/ath11k/mac.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2e87b1a..e3bca88 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3382,7 +3382,7 @@ static int ath11k_mac_mgmt_tx_wmi(struct ath11k *ar, struct ath11k_vif *arvif, return ret; } -void ath11k_mgmt_over_wmi_tx_purge(struct ath11k *ar) +static void ath11k_mgmt_over_wmi_tx_purge(struct ath11k *ar) { struct sk_buff *skb; @@ -3390,7 +3390,7 @@ void ath11k_mgmt_over_wmi_tx_purge(struct ath11k *ar) ieee80211_free_txskb(ar->hw, skb); } -void ath11k_mgmt_over_wmi_tx_work(struct work_struct *work) +static void ath11k_mgmt_over_wmi_tx_work(struct work_struct *work) { struct ath11k *ar = container_of(work, struct ath11k, wmi_mgmt_tx_work); struct ieee80211_tx_info *info; diff --git a/drivers/net/wireless/ath/ath11k/mac.h b/drivers/net/wireless/ath/ath11k/mac.h index 071fcbc..7ced4bc1 100644 --- a/drivers/net/wireless/ath/ath11k/mac.h +++ b/drivers/net/wireless/ath/ath11k/mac.h @@ -187,8 +187,6 @@ struct ath11k *ath11k_mac_get_ar_by_pdev_id(struct ath11k_base *ab, u32 pdev_id) struct ath11k *ath11k_mac_get_ar_vdev_stop_status(struct ath11k_base *ab, u32 vdev_id); -void ath11k_mgmt_over_wmi_tx_work(struct work_struct *work); -void ath11k_mgmt_over_wmi_tx_purge(struct ath11k *ar); void ath11k_mac_drain_tx(struct ath11k *ar); void ath11k_mac_peer_cleanup_all(struct ath11k *ar); int ath11k_mac_tx_mgmt_pending_free(int buf_id, void *skb, void *ctx); From patchwork Mon Jun 24 11:49:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012933 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B1B6C1398 for ; Mon, 24 Jun 2019 11:49:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2A6528BB1 for ; Mon, 24 Jun 2019 11:49:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 962A128BB7; Mon, 24 Jun 2019 11:49:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 489F728BB1 for ; Mon, 24 Jun 2019 11:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Qh+keCly4ddcUv4tXQGOFfn4TVyR+5QVOejwVWOxKaU=; b=U0QDHQFKPcOTSs+0B1UtiC20p4 oWdEsXV7NDUl9KUvYwVX7ONmRSr3xT9+DsxncoinUklu8BL+adQxNS42gEIlwTa2ZPawCo5DKX9Gk 8cwf1XBydx4neNp48rtr6HyanLeT7LMb+wHN4zjDKRG6taK920mmPcEFN7LmG0H7rKSVGfykgiNyp 6opPRS9nkF8rTnLOj75VAYW8BAFoXE+RJKZJYr9zaJsDIVVIOsw8b48IuIJ1Y81JoCC+3VxhwyVtJ odqnJMEQ4Elg8/Nwr/TjagPI4W1ExXPVr7govWKckMW3nKhB9xwGhTwO9NJoCAVu3zrmzONjwBT3f 3TsLrT3g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTy-00052q-KK; Mon, 24 Jun 2019 11:49:58 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTv-000520-VG for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:49:57 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id B11B860A05; Mon, 24 Jun 2019 11:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376995; bh=XJ0MelOvNs3wvnrPbFlYwjGUYfek5WnbIC+j7JZYRvc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Luw8V1k94rjolFcwBfE2qP90ouu0ztRtMUAaAKJ5Z4HVNA7GeahJ2aU4l0PuDGfnJ a8H2JsYzsOFks/YE63hvOSxpXsOcDncWhjp2utK2dN2oPf7DMlndlG3DQ8Wph2qkXS NPmpZBKjYS/rraWsHCrXubhxAzrz+Q4I2zytN3x8= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7029D607DE; Mon, 24 Jun 2019 11:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376995; bh=XJ0MelOvNs3wvnrPbFlYwjGUYfek5WnbIC+j7JZYRvc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Luw8V1k94rjolFcwBfE2qP90ouu0ztRtMUAaAKJ5Z4HVNA7GeahJ2aU4l0PuDGfnJ a8H2JsYzsOFks/YE63hvOSxpXsOcDncWhjp2utK2dN2oPf7DMlndlG3DQ8Wph2qkXS NPmpZBKjYS/rraWsHCrXubhxAzrz+Q4I2zytN3x8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7029D607DE Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 3/8] ath11k: move ath11k_smps_map[] to the beginning of the file Date: Mon, 24 Jun 2019 17:19:24 +0530 Message-Id: <1561376969-3999-3-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_044956_021269_9C9E6101 X-CRM114-Status: UNSURE ( 9.47 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP move ath11k_smps_map[] to the beginning of the file in mac.c . Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index e3bca88..6c1b331 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -167,6 +167,13 @@ const struct htt_rx_ring_tlv_filter ath11k_mac_mon_status_filter_default = { #define ath11k_a_rates (ath11k_legacy_rates + 4) #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4) +static const u32 ath11k_smps_map[] = { + [WLAN_HT_CAP_SM_PS_STATIC] = WMI_PEER_SMPS_STATIC, + [WLAN_HT_CAP_SM_PS_DYNAMIC] = WMI_PEER_SMPS_DYNAMIC, + [WLAN_HT_CAP_SM_PS_INVALID] = WMI_PEER_SMPS_PS_NONE, + [WLAN_HT_CAP_SM_PS_DISABLED] = WMI_PEER_SMPS_PS_NONE, +}; + int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, u16 *rate) { @@ -1503,13 +1510,6 @@ static void ath11k_peer_assoc_prepare(struct ath11k *ar, /* TODO: amsdu_disable req? */ } -static const u32 ath11k_smps_map[] = { - [WLAN_HT_CAP_SM_PS_STATIC] = WMI_PEER_SMPS_STATIC, - [WLAN_HT_CAP_SM_PS_DYNAMIC] = WMI_PEER_SMPS_DYNAMIC, - [WLAN_HT_CAP_SM_PS_INVALID] = WMI_PEER_SMPS_PS_NONE, - [WLAN_HT_CAP_SM_PS_DISABLED] = WMI_PEER_SMPS_PS_NONE, -}; - static int ath11k_setup_peer_smps(struct ath11k *ar, struct ath11k_vif *arvif, const u8 *addr, const struct ieee80211_sta_ht_cap *ht_cap) From patchwork Mon Jun 24 11:49:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012935 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D694A14BB for ; Mon, 24 Jun 2019 11:50:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C561D28BC6 for ; Mon, 24 Jun 2019 11:50:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B95C228BB5; Mon, 24 Jun 2019 11:50:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 33C1B28BB5 for ; Mon, 24 Jun 2019 11:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Zc7F8sSqkfCYebuvA86eXjLyIYAth9pHzBUWeSHlC7o=; b=p1Yzp/OYJMDw14xEo6IxR1yvhd 03dW6QxIHbLWDdXJzKXxGKcKegwk0iVfzPLYFErsp47XoNfRt48Vimu5eG07n5DkY2bzrDRyhAaTS xAcGJYkSGJMJQ/EuYFLY0OKEZlne9wo6Ywrikodbze+qjhZ0Hua02GW2nRrl/h6IbXtk19UdAuXol pdTTHW8YnEDbqd/Jud82DLNtcDvcyESLaOQXT5vcwNxsZ8roFOZWcRyOaR0bgkIy1MOyAajfzJbmg H3RXANBRK7O+uQO8sekhuJICNBkUEa1chCO6XO0Om/7mtr035GOit/T9tkY5/QuhzXiPtbECMvJFT GEkjSglQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU2-00055N-38; Mon, 24 Jun 2019 11:50:02 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNTy-00052t-PU for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:50:00 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 7CA9960C60; Mon, 24 Jun 2019 11:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376998; bh=+8vIyYcXsr3sx3v3x7LwdiQTVZR0jeYMVqbPj9fjzCc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LcRKI23trzOue0LMirftWxuhmTx4bHqISQ8k4DpYiT9bE/CRjFNqqfVGJiqN/R9Y8 /5z1ek6lNJiX6y0E//9Shd+vsrVAGWQAYMbaBY33F4/MqgvjWu6Sbuy4hYG+v6d9xW P7/4SWj5y7Qgum9WAEXclE1mDD4oCskl9RgSrcD8= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id C5B6260A33; Mon, 24 Jun 2019 11:49:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376997; bh=+8vIyYcXsr3sx3v3x7LwdiQTVZR0jeYMVqbPj9fjzCc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AUc3xbn/2cnRUR0ZxaxBRS54GA5ZscEGic2YFipdAwI82qiDF6QaTYY0TFJy4j1A6 U1koHzoGMskPX/iFYx4FwUlAMofhVhviN8EiDeWv6Co3gRh0F8x7Qj44Wrqd6IFCR3 aUpIYjtpbYN5wa93ZNvsQ9C+11aqkVzronn3DX2U= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C5B6260A33 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 4/8] ath11k: use ath11k_mac_op_ prefix for functions in ath11k_ops Date: Mon, 24 Jun 2019 17:19:25 +0530 Message-Id: <1561376969-3999-4-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_044958_885975_2C7D4B5E X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP add ath11k_mac_op_ prefix for all functions defined in ath11k_ops in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 146 +++++++++++++++++----------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 6c1b331..25f9b50 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -654,7 +654,7 @@ static int ath11k_monitor_vdev_up(struct ath11k *ar, int vdev_id) return 0; } -static int ath11k_config(struct ieee80211_hw *hw, u32 changed) +static int ath11k_mac_op_config(struct ieee80211_hw *hw, u32 changed) { struct ath11k *ar = hw->priv; int ret = 0; @@ -1629,10 +1629,10 @@ static void ath11k_bss_disassoc(struct ieee80211_hw *hw, /* TODO: cancel connection_loss_work */ } -static void ath11k_bss_info_changed(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_bss_conf *info, - u32 changed) +static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_bss_conf *info, + u32 changed) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); @@ -1949,9 +1949,9 @@ static int ath11k_start_scan(struct ath11k *ar, return 0; } -static int ath11k_hw_scan(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_scan_request *hw_req) +static int ath11k_mac_op_hw_scan(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_scan_request *hw_req) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); @@ -2032,8 +2032,8 @@ static int ath11k_hw_scan(struct ieee80211_hw *hw, return ret; } -static void ath11k_cancel_hw_scan(struct ieee80211_hw *hw, - struct ieee80211_vif *vif) +static void ath11k_mac_op_cancel_hw_scan(struct ieee80211_hw *hw, + struct ieee80211_vif *vif) { struct ath11k *ar = hw->priv; @@ -2147,9 +2147,9 @@ static int ath11k_clear_peer_keys(struct ath11k_vif *arvif, return first_errno; } -static int ath11k_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, - struct ieee80211_vif *vif, struct ieee80211_sta *sta, - struct ieee80211_key_conf *key) +static int ath11k_mac_op_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, + struct ieee80211_vif *vif, struct ieee80211_sta *sta, + struct ieee80211_key_conf *key) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); @@ -2541,11 +2541,11 @@ static void ath11k_mac_dec_num_stations(struct ath11k_vif *arvif, ar->num_stations--; } -static int ath11k_sta_state(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_sta *sta, - enum ieee80211_sta_state old_state, - enum ieee80211_sta_state new_state) +static int ath11k_mac_op_sta_state(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + enum ieee80211_sta_state old_state, + enum ieee80211_sta_state new_state) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); @@ -2673,10 +2673,10 @@ static int ath11k_sta_state(struct ieee80211_hw *hw, return ret; } -static void ath11k_sta_rc_update(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_sta *sta, - u32 changed) +static void ath11k_mac_op_sta_rc_update(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + u32 changed) { struct ath11k *ar = hw->priv; struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv; @@ -2816,9 +2816,9 @@ static int ath11k_conf_tx_uapsd(struct ath11k *ar, struct ieee80211_vif *vif, return ret; } -static int ath11k_conf_tx(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, u16 ac, - const struct ieee80211_tx_queue_params *params) +static int ath11k_mac_op_conf_tx(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, u16 ac, + const struct ieee80211_tx_queue_params *params) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = (void *)vif->drv_priv; @@ -3481,7 +3481,7 @@ static int ath11k_mac_config_mon_status_default(struct ath11k *ar, bool enable) DP_RX_BUFFER_SIZE, &tlv_filter); } -static int ath11k_start(struct ieee80211_hw *hw) +static int ath11k_mac_op_start(struct ieee80211_hw *hw) { struct ath11k *ar = hw->priv; struct ath11k_base *ab = ar->ab; @@ -3585,7 +3585,7 @@ static int ath11k_start(struct ieee80211_hw *hw) return ret; } -static void ath11k_stop(struct ieee80211_hw *hw) +static void ath11k_mac_op_stop(struct ieee80211_hw *hw) { struct ath11k *ar = hw->priv; struct htt_ppdu_stats_info *ppdu_stats, *tmp; @@ -3703,8 +3703,8 @@ static int ath11k_set_he_mu_sounding_mode(struct ath11k *ar, return ret; } -static int ath11k_add_interface(struct ieee80211_hw *hw, - struct ieee80211_vif *vif) +static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw, + struct ieee80211_vif *vif) { struct ath11k *ar = hw->priv; struct ath11k_base *ab = ar->ab; @@ -3931,8 +3931,8 @@ static int ath11k_mac_vif_unref(int buf_id, void *skb, void *ctx) return 0; } -static void ath11k_remove_interface(struct ieee80211_hw *hw, - struct ieee80211_vif *vif) +static void ath11k_mac_op_remove_interface(struct ieee80211_hw *hw, + struct ieee80211_vif *vif) { struct ath11k *ar = hw->priv; struct ath11k_vif *arvif = ath11k_vif_to_arvif(vif); @@ -3995,10 +3995,10 @@ static void ath11k_remove_interface(struct ieee80211_hw *hw, FIF_PROBE_REQ | \ FIF_FCSFAIL) -static void ath11k_configure_filter(struct ieee80211_hw *hw, - unsigned int changed_flags, - unsigned int *total_flags, - u64 multicast) +static void ath11k_mac_op_configure_filter(struct ieee80211_hw *hw, + unsigned int changed_flags, + unsigned int *total_flags, + u64 multicast) { struct ath11k *ar = hw->priv; bool reset_flag = false; @@ -4026,7 +4026,7 @@ static void ath11k_configure_filter(struct ieee80211_hw *hw, mutex_unlock(&ar->conf_mutex); } -static int ath11k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) +static int ath11k_mac_op_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) { struct ath11k *ar = hw->priv; @@ -4040,7 +4040,7 @@ static int ath11k_get_antenna(struct ieee80211_hw *hw, u32 *tx_ant, u32 *rx_ant) return 0; } -static int ath11k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) +static int ath11k_mac_op_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) { struct ath11k *ar = hw->priv; int ret; @@ -4052,9 +4052,9 @@ static int ath11k_set_antenna(struct ieee80211_hw *hw, u32 tx_ant, u32 rx_ant) return ret; } -static int ath11k_ampdu_action(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_ampdu_params *params) +static int ath11k_mac_op_ampdu_action(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_ampdu_params *params) { struct ath11k *ar = hw->priv; int ret = -EINVAL; @@ -4603,7 +4603,7 @@ ath11k_set_vdev_param_to_all_vifs(struct ath11k *ar, int param, u32 value) /* mac80211 stores device specific RTS/Fragmentation threshold value, * this is set interface specific to firmware from ath11k driver */ -static int ath11k_set_rts_threshold(struct ieee80211_hw *hw, u32 value) +static int ath11k_mac_op_set_rts_threshold(struct ieee80211_hw *hw, u32 value) { struct ath11k *ar = hw->priv; int param_id = WMI_VDEV_PARAM_RTS_THRESHOLD; @@ -4611,7 +4611,7 @@ static int ath11k_set_rts_threshold(struct ieee80211_hw *hw, u32 value) return ath11k_set_vdev_param_to_all_vifs(ar, param_id, value); } -static int ath11k_set_frag_threshold(struct ieee80211_hw *hw, u32 value) +static int ath11k_mac_op_set_frag_threshold(struct ieee80211_hw *hw, u32 value) { /* Even though there's a WMI vdev param for fragmentation threshold no * known firmware actually implements it. Moreover it is not possible to @@ -4626,8 +4626,8 @@ static int ath11k_set_frag_threshold(struct ieee80211_hw *hw, u32 value) return -EOPNOTSUPP; } -static void ath11k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, - u32 queues, bool drop) +static void ath11k_mac_op_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, + u32 queues, bool drop) { struct ath11k *ar = hw->priv; long time_left; @@ -4985,8 +4985,8 @@ ath11k_mac_op_set_bitrate_mask(struct ieee80211_hw *hw, } static void -ath11k_reconfig_complete(struct ieee80211_hw *hw, - enum ieee80211_reconfig_type reconfig_type) +ath11k_mac_op_reconfig_complete(struct ieee80211_hw *hw, + enum ieee80211_reconfig_type reconfig_type) { struct ath11k *ar = hw->priv; @@ -5038,7 +5038,7 @@ ath11k_mac_update_bss_chan_survey(struct ath11k *ar, ath11k_warn(ar->ab, "bss channel survey timed out\n"); } -static int ath11k_get_survey(struct ieee80211_hw *hw, int idx, +static int ath11k_mac_op_get_survey(struct ieee80211_hw *hw, int idx, struct survey_info *survey) { struct ath11k *ar = hw->priv; @@ -5083,10 +5083,10 @@ static int ath11k_get_survey(struct ieee80211_hw *hw, int idx, return ret; } -static void ath11k_sta_statistics(struct ieee80211_hw *hw, - struct ieee80211_vif *vif, - struct ieee80211_sta *sta, - struct station_info *sinfo) +static void ath11k_mac_op_sta_statistics(struct ieee80211_hw *hw, + struct ieee80211_vif *vif, + struct ieee80211_sta *sta, + struct station_info *sinfo) { struct ath11k_sta *arsta = (struct ath11k_sta *)sta->drv_priv; @@ -5115,35 +5115,35 @@ static void ath11k_sta_statistics(struct ieee80211_hw *hw, static const struct ieee80211_ops ath11k_ops = { .tx = ath11k_mac_op_tx, - .start = ath11k_start, - .stop = ath11k_stop, - .reconfig_complete = ath11k_reconfig_complete, - .add_interface = ath11k_add_interface, - .remove_interface = ath11k_remove_interface, - .config = ath11k_config, - .bss_info_changed = ath11k_bss_info_changed, - .configure_filter = ath11k_configure_filter, - .hw_scan = ath11k_hw_scan, - .cancel_hw_scan = ath11k_cancel_hw_scan, - .set_key = ath11k_set_key, - .sta_state = ath11k_sta_state, - .sta_rc_update = ath11k_sta_rc_update, - .conf_tx = ath11k_conf_tx, - .set_antenna = ath11k_set_antenna, - .get_antenna = ath11k_get_antenna, - .ampdu_action = ath11k_ampdu_action, + .start = ath11k_mac_op_start, + .stop = ath11k_mac_op_stop, + .reconfig_complete = ath11k_mac_op_reconfig_complete, + .add_interface = ath11k_mac_op_add_interface, + .remove_interface = ath11k_mac_op_remove_interface, + .config = ath11k_mac_op_config, + .bss_info_changed = ath11k_mac_op_bss_info_changed, + .configure_filter = ath11k_mac_op_configure_filter, + .hw_scan = ath11k_mac_op_hw_scan, + .cancel_hw_scan = ath11k_mac_op_cancel_hw_scan, + .set_key = ath11k_mac_op_set_key, + .sta_state = ath11k_mac_op_sta_state, + .sta_rc_update = ath11k_mac_op_sta_rc_update, + .conf_tx = ath11k_mac_op_conf_tx, + .set_antenna = ath11k_mac_op_set_antenna, + .get_antenna = ath11k_mac_op_get_antenna, + .ampdu_action = ath11k_mac_op_ampdu_action, .add_chanctx = ath11k_mac_op_add_chanctx, .remove_chanctx = ath11k_mac_op_remove_chanctx, .change_chanctx = ath11k_mac_op_change_chanctx, .assign_vif_chanctx = ath11k_mac_op_assign_vif_chanctx, .unassign_vif_chanctx = ath11k_mac_op_unassign_vif_chanctx, .switch_vif_chanctx = ath11k_mac_op_switch_vif_chanctx, - .set_rts_threshold = ath11k_set_rts_threshold, - .set_frag_threshold = ath11k_set_frag_threshold, + .set_rts_threshold = ath11k_mac_op_set_rts_threshold, + .set_frag_threshold = ath11k_mac_op_set_frag_threshold, .set_bitrate_mask = ath11k_mac_op_set_bitrate_mask, - .get_survey = ath11k_get_survey, - .flush = ath11k_flush, - .sta_statistics = ath11k_sta_statistics, + .get_survey = ath11k_mac_op_get_survey, + .flush = ath11k_mac_op_flush, + .sta_statistics = ath11k_mac_op_sta_statistics, CFG80211_TESTMODE_CMD(ath11k_tm_cmd) #ifdef CONFIG_MAC80211_DEBUGFS .sta_add_debugfs = ath11k_sta_add_debugfs, From patchwork Mon Jun 24 11:49:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012937 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 357311398 for ; Mon, 24 Jun 2019 11:50:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23D3D28BB5 for ; Mon, 24 Jun 2019 11:50:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1887428BC0; Mon, 24 Jun 2019 11:50:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C123328BB7 for ; Mon, 24 Jun 2019 11:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9TgC55OOmCaVpTcJPyf5TMVSIO1HWarkA4QW/yzb+/w=; b=qTuIQvFeHbovbsDrPb7o/OXdWj rOd8zEZPkr40bhQOX2u9YGztbMIz/7LXoqhZWBblODDH9MBmo3uZ+KKGHZbfTtLBzfNZ8TVOC4kTk QtEAVMG/b1FqfWaF7KcHddDIzH+QkewR8FsJDql/GxiX7eMtA0vL42kG0LDxdroZtCkmVLyVqCTzL 6XMpLGz9UU9LQjX23vjyO+zkLzp0ebmITyvm3ak22SkfAe838ThSdPywaogPk3sQZPAqchvKNdSe+ nW1fkQftqaaBwwDcG4RcQvpt+iGW2RoVLthYmynwWdvWrFj5ksIoo57IkKsCL1ph85gXDQtpCSEZ4 VDFDFANg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU3-0005HA-LC; Mon, 24 Jun 2019 11:50:03 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU0-00053o-Ft for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:50:01 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 39D5F60A43; Mon, 24 Jun 2019 11:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377000; bh=GLDKGvSNUO6c0mGMgkPi9tUdwXtq4uORT1YX9PT9vJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CCN775RlGJM3E3C84Y2VpRFbWaFKweaiNfb3/631FkSWC6sVMJJQJQtCfmjnsThYS 2jIQPYY4s+GjLHwJH5jjPKPZ7ngjU7y8gYpZLXKGG3Vk/MgO7dOv5BGnadIP+sZen4 LrstUFrk7E7uJkI1xxq5ss3QUUdYb98LC9Ah+OA8= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EDE6160A97; Mon, 24 Jun 2019 11:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561376999; bh=GLDKGvSNUO6c0mGMgkPi9tUdwXtq4uORT1YX9PT9vJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bop0yyFmCOKzXVEZrKFK0J8DGazzfhdEheD0dO3sluvzvXDrHMrSjYIvCvl+iORRO D81jOMb9k+Sodn2h14sHqclb4x7WDYWsJfsU9ITNcWoYYRMgzmyQFX++JSKf5kTgIY SXULjoAUUpmDGP5ZxSMgxiNyqzVcAmMVe9n2ri6Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EDE6160A97 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 5/8] ath11k: add approprite comments for no-op functions Date: Mon, 24 Jun 2019 17:19:26 +0530 Message-Id: <1561376969-3999-5-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_045000_553065_8D602D91 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add appropriate comments for no-op functions defined in ath11k_ops in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 25f9b50..f878479 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -659,6 +659,11 @@ static int ath11k_mac_op_config(struct ieee80211_hw *hw, u32 changed) struct ath11k *ar = hw->priv; int ret = 0; + /* mac80211 requires this op to be present and that's why + * there's an empty function, this can be extended when + * required. + */ + mutex_lock(&ar->conf_mutex); /* TODO: Handle configuration changes as appropriate */ From patchwork Mon Jun 24 11:49:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012939 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CD35C1398 for ; Mon, 24 Jun 2019 11:50:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE6F128BB1 for ; Mon, 24 Jun 2019 11:50:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2D9C28BC8; Mon, 24 Jun 2019 11:50:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BFD928BB1 for ; Mon, 24 Jun 2019 11:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KcrqHgLbOR/5w/tWaotj3hCBq4j6rmD8TNBSzv5e7HI=; b=EmX8AZEML5mSXgWC+x6XdJbN7d QPCVZlFD4kntnI5j+1UYW5ECFTTE7mX4pvzOr5h64VQMjgm07BmPuVkJPbWs7ovSZJYBkI8JIZ/uQ 8FWWyVritocd3iUTvvbUbDi2JXbWLxQnTv3249ZEIA7DTiC2bs3NusEKXJQEjbyROExvUwhKn6MOY wgvd1+OZNpoEQP01tyT5HI8vZ0cSFoXFbfd9hLTxiFlVoT1mdjvzaR7F7ciaF4RSbYwQUCqKnUplh 6oK+NTmMQKzeV3gQmfOeg/ALm4kleprszRYmoNERy800iqpYf+oAZJSM8Eu8B6RWGwX0NO3cmbIfW CjzNlPaQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU6-0005d6-F7; Mon, 24 Jun 2019 11:50:06 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU3-0005Cv-1J for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:50:04 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 581FB60DAA; Mon, 24 Jun 2019 11:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377002; bh=OLqnbcEyWm6jmTWjQvRUhMDuCeARkdTAhwW1nLPIbTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g2PqRrB3RUu5YkYEBoYNGDRYMQ1bHvkMZKdwxddEnzSrgPvfEK69xF5JmLPP/Pg+2 8mxjisfu2IwLGzMLmtjHPFFkYUw2MVmME7yFpAoZqmOjobGSdoYLLAJPvzQ0839cbK Q3/SzpNiAqdM38wd8FBu4kOGojzbGmjRgBUM1DwY= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 1C2F860C72; Mon, 24 Jun 2019 11:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377002; bh=OLqnbcEyWm6jmTWjQvRUhMDuCeARkdTAhwW1nLPIbTg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g2PqRrB3RUu5YkYEBoYNGDRYMQ1bHvkMZKdwxddEnzSrgPvfEK69xF5JmLPP/Pg+2 8mxjisfu2IwLGzMLmtjHPFFkYUw2MVmME7yFpAoZqmOjobGSdoYLLAJPvzQ0839cbK Q3/SzpNiAqdM38wd8FBu4kOGojzbGmjRgBUM1DwY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1C2F860C72 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 6/8] ath11k: avoid use of magic numbers Date: Mon, 24 Jun 2019 17:19:27 +0530 Message-Id: <1561376969-3999-6-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_045003_122206_6FE7190C X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Use macros where ever necessary, replace magic numbers with appropriate macros in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index f878479..2fd1bfc 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -167,6 +167,8 @@ const struct htt_rx_ring_tlv_filter ath11k_mac_mon_status_filter_default = { #define ath11k_a_rates (ath11k_legacy_rates + 4) #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4) +#define ATH11K_MAC_SCAN_TIMEOUT_MSECS 200 /* in msecs */ + static const u32 ath11k_smps_map[] = { [WLAN_HT_CAP_SM_PS_STATIC] = WMI_PEER_SMPS_STATIC, [WLAN_HT_CAP_SM_PS_DYNAMIC] = WMI_PEER_SMPS_DYNAMIC, @@ -2027,7 +2029,7 @@ static int ath11k_mac_op_hw_scan(struct ieee80211_hw *hw, /* Add a 200ms margin to account for event/command processing */ ieee80211_queue_delayed_work(ar->hw, &ar->scan.timeout, msecs_to_jiffies(arg.max_scan_time + - 200)); + ATH11K_MAC_SCAN_TIMEOUT_MSECS)); exit: if (req->ie_len) From patchwork Mon Jun 24 11:49:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012941 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2BDAB14BB for ; Mon, 24 Jun 2019 11:50:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DD5F28ADC for ; Mon, 24 Jun 2019 11:50:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 126FB28BC6; Mon, 24 Jun 2019 11:50:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C4C9728ADC for ; Mon, 24 Jun 2019 11:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=r/zB+W4DiaGgP8XxVI3sd50uDyinDY8Htq8U5N1HmRo=; b=ug2CrNeiE0PdEQn++J22Yc439u qDipIlVngHWjlL1Fdei3xl6yRVW1xUnA6jLlENL0IKXygd4uYLnZLRIdv1LoaiFCy+PBXN0ZlNFRP jAcGnM0ujabIx0Ps6cD+E8RfjFLchkp8dqds/k6jxmJdDOj3gnpnWrv3DIQrP2Nt/8uJ8bplsRirg jBZrlwd5HhVwiSEeREq1+MpwE8NCZZC4oC9jqpnFu6KChcSiDzg5iIgkJ+Ccrev0d8bwhf5SrnKjt 75tfp6RKyBYjvHcHNz5kQpUjE4OWnm4YOQjhmbjabJK8Dn8sb9z/rlI7W5Mo7fMVxGVp14ifYC48H uLT+ZoVg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU9-0005yP-0C; Mon, 24 Jun 2019 11:50:09 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU5-0005ST-5c for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:50:06 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id C3CEB60E5A; Mon, 24 Jun 2019 11:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377004; bh=lEbeEpPPCJliyBbQC0cJ9JzpV4bFaMA6tFHPJHlRVOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j2iOhU1a8QO4+lLTSjpSOqVoiqdeNzM7Y2fmEJIZhSZzESTgnaXHhTpHIhFbQSc/i XJ23D6Z9fmmhEhIO+/g4IVHb46gVER2FF1oE+s2rDdRzJq9LPj6xVgY3x0yWre3o7f BC0b/i7WOkZWiEYK3IsI5EyNFetlfN3/PoW+Tfsc= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5235E60C72; Mon, 24 Jun 2019 11:50:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377004; bh=lEbeEpPPCJliyBbQC0cJ9JzpV4bFaMA6tFHPJHlRVOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j2iOhU1a8QO4+lLTSjpSOqVoiqdeNzM7Y2fmEJIZhSZzESTgnaXHhTpHIhFbQSc/i XJ23D6Z9fmmhEhIO+/g4IVHb46gVER2FF1oE+s2rDdRzJq9LPj6xVgY3x0yWre3o7f BC0b/i7WOkZWiEYK3IsI5EyNFetlfN3/PoW+Tfsc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5235E60C72 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 7/8] ath11k: remove unnecessary parenthesis Date: Mon, 24 Jun 2019 17:19:28 +0530 Message-Id: <1561376969-3999-7-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_045005_257602_0E6DF182 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Remove unnecessary parenthesis in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2fd1bfc..2274f77 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -2365,7 +2365,7 @@ static int ath11k_station_assoc(struct ath11k *ar, return ret; } - if ((sta->wme && sta->uapsd_queues)) { + if (sta->wme && sta->uapsd_queues) { ret = ath11k_peer_assoc_qos_ap(ar, arvif, sta); if (ret) { ath11k_warn(ar->ab, "failed to set qos params for STA %pM for vdev %i: %d\n", From patchwork Mon Jun 24 11:49:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Pubbisetty X-Patchwork-Id: 11012943 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A1F9614BB for ; Mon, 24 Jun 2019 11:50:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 935C128BC2 for ; Mon, 24 Jun 2019 11:50:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91EC428BC6; Mon, 24 Jun 2019 11:50:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2D6F528BC2 for ; Mon, 24 Jun 2019 11:50:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=03NxYFr9/RNprhXlFYagFpFiHIfXd3uj5nMmCH21VFs=; b=KduYhqO5sutrDHRn/mhgiI84lL Imcjpb4jn512E/9MTxsLPOOkVxmZJ4NmgDkmaX50d/PSh/qZcPsFhmQcwWiNM0JXSF7+Dm98C4h19 bembthP6FMqb6sj4eP0DrRiYhfEmRtLx2wUFqQDDpNiGueUQQSn2AnFofkws9CJiSVygfTKfLCeXP ur2qwlX0n8ZUFgFbR2VGdNIZf6EBrle2hvmNcEbG0WxdehbI2kouCxyj5pGAcbdAZLiY4oFg6ciXb jPw4IQ3ItOPNueGYmsm2z2uf4lw2usdyI7L7cF9VMRlU6WRKao3Oa2A2jiq//2TWUdcivDrq++sSI Gx23luPA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hfNUA-0006Ab-Fl; Mon, 24 Jun 2019 11:50:10 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hfNU7-0005i0-7c for ath11k@lists.infradead.org; Mon, 24 Jun 2019 11:50:08 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E05E260FE9; Mon, 24 Jun 2019 11:50:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377006; bh=QSKhF5Xni7gDgw8ZNGayw9vMtlqv2HwSRVo9kvWKBHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JIUpyWUgYPQUXAP/QCWgkXJ3kyRvNk09QwrlMzPc/Mvv3J+uwtK+gLWZBqEX/V+Zl gvkm8Li64W7+rQgubkcq/8L8l/75YDtpm5HQX7fJe6EZGZ5PRIj+uGRKYNPSrhAPNz w7tvH0Ry7JvTJlXWRPsH90qLrn5NTVpNhIcNcH5E= Received: from vnaralas-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mpubbise@codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A26F060E7A; Mon, 24 Jun 2019 11:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1561377006; bh=QSKhF5Xni7gDgw8ZNGayw9vMtlqv2HwSRVo9kvWKBHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JIUpyWUgYPQUXAP/QCWgkXJ3kyRvNk09QwrlMzPc/Mvv3J+uwtK+gLWZBqEX/V+Zl gvkm8Li64W7+rQgubkcq/8L8l/75YDtpm5HQX7fJe6EZGZ5PRIj+uGRKYNPSrhAPNz w7tvH0Ry7JvTJlXWRPsH90qLrn5NTVpNhIcNcH5E= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A26F060E7A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mpubbise@codeaurora.org From: Manikanta Pubbisetty To: ath11k@lists.infradead.org Subject: [PATCH 8/8] ath11k: use switch statement when necessary Date: Mon, 24 Jun 2019 17:19:29 +0530 Message-Id: <1561376969-3999-8-git-send-email-mpubbise@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> References: <1561376969-3999-1-git-send-email-mpubbise@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190624_045007_314319_D05796DC X-CRM114-Status: UNSURE ( 9.73 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath11k@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Manikanta Pubbisetty MIME-Version: 1.0 Sender: "ath11k" Errors-To: ath11k-bounces+patchwork-ath11k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP use switch statement instead of mutliple if statements in ath11k_mac_op_add_interface() in mac.c file. Signed-off-by: Manikanta Pubbisetty --- drivers/net/wireless/ath/ath11k/mac.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/ath11k/mac.c b/drivers/net/wireless/ath/ath11k/mac.c index 2274f77..fa92cf7 100644 --- a/drivers/net/wireless/ath/ath11k/mac.c +++ b/drivers/net/wireless/ath/ath11k/mac.c @@ -3828,7 +3828,8 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw, goto err_vdev_del; } - if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { + switch (arvif->vdev_type) { + case WMI_VDEV_TYPE_AP: peer_param.vdev_id = arvif->vdev_id; peer_param.peer_addr = vif->addr; peer_param.peer_type = WMI_PEER_TYPE_DEFAULT; @@ -3838,18 +3839,15 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw, arvif->vdev_id, ret); goto err_vdev_del; } - } - if (arvif->vdev_type == WMI_VDEV_TYPE_AP) { ret = ath11k_mac_set_kickout(arvif); if (ret) { ath11k_warn(ar->ab, "failed to set vdev %i kickout parameters: %d\n", arvif->vdev_id, ret); goto err_peer_del; } - } - - if (arvif->vdev_type == WMI_VDEV_TYPE_STA) { + break; + case WMI_VDEV_TYPE_STA: param_id = WMI_STA_PS_PARAM_RX_WAKE_POLICY; param_value = WMI_STA_PS_RX_WAKE_POLICY_WAKE; ret = ath11k_wmi_set_sta_ps_param(ar, arvif->vdev_id, @@ -3879,6 +3877,9 @@ static int ath11k_mac_op_add_interface(struct ieee80211_hw *hw, arvif->vdev_id, ret); goto err_peer_del; } + break; + default: + break; } arvif->txpower = vif->bss_conf.txpower;