Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd75eb85 authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

libertas: precedence bug



Negate has precedence over comparison so the original test was always
false.  (Neither 0 nor 1 are equal to NL80211_IFTYPE_MONITOR).

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3be61a38
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -180,7 +180,7 @@ void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count)
{
{
	struct tx_radiotap_hdr *radiotap_hdr;
	struct tx_radiotap_hdr *radiotap_hdr;


	if (!priv->wdev->iftype == NL80211_IFTYPE_MONITOR ||
	if (priv->wdev->iftype != NL80211_IFTYPE_MONITOR ||
	    priv->currenttxskb == NULL)
	    priv->currenttxskb == NULL)
		return;
		return;