aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/wil6210/txrx.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c
index 41f88ee49bca..5cda0ea9925f 100644
--- a/drivers/net/wireless/ath/wil6210/txrx.c
+++ b/drivers/net/wireless/ath/wil6210/txrx.c
@@ -956,11 +956,15 @@ netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev)
956 struct wil6210_priv *wil = ndev_to_wil(ndev); 956 struct wil6210_priv *wil = ndev_to_wil(ndev);
957 struct ethhdr *eth = (void *)skb->data; 957 struct ethhdr *eth = (void *)skb->data;
958 struct vring *vring; 958 struct vring *vring;
959 static bool pr_once_fw;
959 int rc; 960 int rc;
960 961
961 wil_dbg_txrx(wil, "%s()\n", __func__); 962 wil_dbg_txrx(wil, "%s()\n", __func__);
962 if (!test_bit(wil_status_fwready, &wil->status)) { 963 if (!test_bit(wil_status_fwready, &wil->status)) {
963 wil_err(wil, "FW not ready\n"); 964 if (!pr_once_fw) {
965 wil_err(wil, "FW not ready\n");
966 pr_once_fw = true;
967 }
964 goto drop; 968 goto drop;
965 } 969 }
966 if (!test_bit(wil_status_fwconnected, &wil->status)) { 970 if (!test_bit(wil_status_fwconnected, &wil->status)) {
@@ -971,6 +975,7 @@ netdev_tx_t wil_start_xmit(struct sk_buff *skb, struct net_device *ndev)
971 wil_err(wil, "Xmit in monitor mode not supported\n"); 975 wil_err(wil, "Xmit in monitor mode not supported\n");
972 goto drop; 976 goto drop;
973 } 977 }
978 pr_once_fw = false;
974 979
975 /* find vring */ 980 /* find vring */
976 if (is_unicast_ether_addr(eth->h_dest)) { 981 if (is_unicast_ether_addr(eth->h_dest)) {