Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] wl12xx: don't explicitly check for unjoined ibss
@ 2011-11-08 14:07 Eliad Peller
  2011-12-01 14:38 ` Luciano Coelho
  0 siblings, 1 reply; 2+ messages in thread
From: Eliad Peller @ 2011-11-08 14:07 UTC (permalink / raw)
  To: Luciano Coelho; +Cc: linux-wireless

After the ibss carrier issue was fixed, we can revert
the following patch:

commit 48309fd477ef867babb6819f67fe082c133a5fa9
Author: Shahar Lev <shahar@wizery.com>
Date:   Fri Oct 7 18:17:25 2011 +0200

    wl12xx: remove warning message during IBSS Tx

    mac80211 sets the carrier on an IBSS interface even when no network is
    joined. Ignore garbage frames transmitted on a disconnected IBSS
    interface without printing warnings.

Signed-off-by: Eliad Peller <eliad@wizery.com>
---
depends on "mac80211: set carrier_on for ibss vifs only while joined"

 drivers/net/wireless/wl12xx/tx.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index 3a9d2a6..c12645c 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -425,15 +425,7 @@ static int wl1271_prepare_tx_frame(struct wl1271 *wl, struct wl12xx_vif *wlvif,
 	}
 	hlid = wl12xx_tx_get_hlid(wl, wlvif, skb);
 	if (hlid == WL12XX_INVALID_LINK_ID) {
-		if (wlvif->bss_type == BSS_TYPE_IBSS &&
-		    !test_bit(WLVIF_FLAG_IBSS_JOINED, &wlvif->flags)) {
-			/* It's ok to drop packets when not joined to IBSS */
-			wl1271_debug(DEBUG_TX, "dropping skb while IBSS not "
-				     " joined");
-		} else {
-			wl1271_error("invalid hlid. dropping skb 0x%p", skb);
-		}
-
+		wl1271_error("invalid hlid. dropping skb 0x%p", skb);
 		return -EINVAL;
 	}
 
-- 
1.7.6.401.g6a319


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

* Re: [PATCH] wl12xx: don't explicitly check for unjoined ibss
  2011-11-08 14:07 [PATCH] wl12xx: don't explicitly check for unjoined ibss Eliad Peller
@ 2011-12-01 14:38 ` Luciano Coelho
  0 siblings, 0 replies; 2+ messages in thread
From: Luciano Coelho @ 2011-12-01 14:38 UTC (permalink / raw)
  To: Eliad Peller; +Cc: linux-wireless

On Tue, 2011-11-08 at 16:07 +0200, Eliad Peller wrote: 
> After the ibss carrier issue was fixed, we can revert
> the following patch:
> 
> commit 48309fd477ef867babb6819f67fe082c133a5fa9
> Author: Shahar Lev <shahar@wizery.com>
> Date:   Fri Oct 7 18:17:25 2011 +0200
> 
>     wl12xx: remove warning message during IBSS Tx
> 
>     mac80211 sets the carrier on an IBSS interface even when no network is
>     joined. Ignore garbage frames transmitted on a disconnected IBSS
>     interface without printing warnings.
> 
> Signed-off-by: Eliad Peller <eliad@wizery.com>
> ---

Applied!

-- 
Cheers,
Luca.


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

end of thread, other threads:[~2011-12-01 14:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-08 14:07 [PATCH] wl12xx: don't explicitly check for unjoined ibss Eliad Peller
2011-12-01 14:38 ` Luciano Coelho

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