Search Linux Wireless

Re: [PATCH] wl12xx: remove warning message during IBSS Tx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2011-10-11 at 17:43 +0300, Luciano Coelho wrote: 
> On Fri, 2011-10-07 at 18:17 +0200, Shahar Lev wrote: 
> > 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: Shahar Lev <shahar@xxxxxxxxxx>
> > ---
> 
> Applied, thanks!

Actually I had to merge this with Eliad's vif patches, so I did this
before applying:

diff --git a/drivers/net/wireless/wl12xx/tx.c b/drivers/net/wireless/wl12xx/tx.c
index 1bc00ca..27a45e1 100644
--- a/drivers/net/wireless/wl12xx/tx.c
+++ b/drivers/net/wireless/wl12xx/tx.c
@@ -429,7 +429,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(WL1271_FLAG_IBSS_JOINED, &wl->flags)) {
+                   !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");


-- 
Cheers,
Luca.

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux