ATH10K Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ath10k: add missing goto
@ 2014-11-24 13:15 Michal Kazior
  2014-11-24 13:15 ` [PATCH 2/3] ath10k: clean up num_peers locking Michal Kazior
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Michal Kazior @ 2014-11-24 13:15 UTC (permalink / raw)
  To: ath10k; +Cc: linux-wireless, Michal Kazior

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-11-26  6:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 3/3] ath10k: fix station count enforcement Michal Kazior
2014-11-25  8:01   ` Kalle Valo
2014-11-25  8:38     ` Michal Kazior
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   ` [PATCH v2 2/3] ath10k: clean up num_peers locking Michal Kazior
2014-11-25 14:16   ` [PATCH v2 3/3] ath10k: fix station count enforcement Michal Kazior
2014-11-26  6:44   ` [PATCH v2 1/3] ath10k: add missing goto Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox