From: Michal Kazior <michal.kazior@tieto.com> To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior <michal.kazior@tieto.com> Subject: [PATCH 1/3] ath10k: add missing goto Date: Mon, 24 Nov 2014 14:15:07 +0100 [thread overview] Message-ID: <1416834909-7130-1-git-send-email-michal.kazior@tieto.com> (raw) This prevents warning spamming if peer creation fails during sta_state in some cases. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> --- drivers/net/wireless/ath/ath10k/mac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 1245ac8..7b5a888 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3559,9 +3559,11 @@ static int ath10k_sta_state(struct ieee80211_hw *hw, arvif->vdev_id, sta->addr, ar->num_peers); ret = ath10k_peer_create(ar, arvif->vdev_id, sta->addr); - if (ret) + if (ret) { ath10k_warn(ar, "failed to add peer %pM for vdev %d when adding a new sta: %i\n", sta->addr, arvif->vdev_id, ret); + goto exit; + } if (vif->type == NL80211_IFTYPE_STATION) { WARN_ON(arvif->is_started); -- 1.8.5.3
WARNING: multiple messages have this Message-ID (diff)
From: Michal Kazior <michal.kazior@tieto.com> To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior <michal.kazior@tieto.com> Subject: [PATCH 1/3] ath10k: add missing goto Date: Mon, 24 Nov 2014 14:15:07 +0100 [thread overview] Message-ID: <1416834909-7130-1-git-send-email-michal.kazior@tieto.com> (raw) This prevents warning spamming if peer creation fails during sta_state in some cases. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> --- drivers/net/wireless/ath/ath10k/mac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 1245ac8..7b5a888 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3559,9 +3559,11 @@ static int ath10k_sta_state(struct ieee80211_hw *hw, arvif->vdev_id, sta->addr, ar->num_peers); ret = ath10k_peer_create(ar, arvif->vdev_id, sta->addr); - if (ret) + if (ret) { ath10k_warn(ar, "failed to add peer %pM for vdev %d when adding a new sta: %i\n", sta->addr, arvif->vdev_id, ret); + goto exit; + } if (vif->type == NL80211_IFTYPE_STATION) { WARN_ON(arvif->is_started); -- 1.8.5.3 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k
next reply other threads:[~2014-11-24 13:27 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-11-24 13:15 Michal Kazior [this message] 2014-11-24 13:15 ` [PATCH 1/3] ath10k: add missing goto Michal Kazior 2014-11-24 13:15 ` [PATCH 2/3] ath10k: clean up num_peers locking Michal Kazior 2014-11-24 13:15 ` Michal Kazior 2014-11-24 13:15 ` [PATCH 3/3] ath10k: fix station count enforcement Michal Kazior 2014-11-24 13:15 ` Michal Kazior 2014-11-25 8:01 ` Kalle Valo 2014-11-25 8:01 ` Kalle Valo 2014-11-25 8:38 ` Michal Kazior 2014-11-25 8:38 ` Michal Kazior 2014-11-25 8:58 ` Kalle Valo 2014-11-25 8:58 ` Kalle Valo 2014-11-25 14:16 ` [PATCH v2 1/3] ath10k: add missing goto Michal Kazior 2014-11-25 14:16 ` Michal Kazior 2014-11-25 14:16 ` [PATCH v2 2/3] ath10k: clean up num_peers locking Michal Kazior 2014-11-25 14:16 ` Michal Kazior 2014-11-25 14:16 ` [PATCH v2 3/3] ath10k: fix station count enforcement Michal Kazior 2014-11-25 14:16 ` Michal Kazior 2014-11-26 6:44 ` [PATCH v2 1/3] ath10k: add missing goto Kalle Valo 2014-11-26 6:44 ` Kalle Valo
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1416834909-7130-1-git-send-email-michal.kazior@tieto.com \ --to=michal.kazior@tieto.com \ --cc=ath10k@lists.infradead.org \ --cc=linux-wireless@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.