Search Linux Wireless

RE: [PATCH 6/9] mwifiex: process rxba_sync event

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

 



Hi Kalle,

> From: Kalle Valo [mailto:kvalo@xxxxxxxxxxxxxx]
> Sent: Monday, July 18, 2016 10:54 PM
> To: Amitkumar Karwar
> Cc: linux-wireless@xxxxxxxxxxxxxxx; Cathy Luo; Nishant Sarmukadam;
> Xinming Hu
> Subject: Re: [PATCH 6/9] mwifiex: process rxba_sync event
> 
> Amitkumar Karwar <akarwar@xxxxxxxxxxx> writes:
> 
> > From: Xinming Hu <huxm@xxxxxxxxxxx>
> >
> > Firmware may filter and drop packets under certain condition, for
> > example, ARP SA=DA packet. this event will be used to synchronize the
> > Rx Block Acknowledgment (BA) window bitmap and to fill any holes in
> > driver side.
> >
> > Signed-off-by: Xinming Hu <huxm@xxxxxxxxxxx>
> > Signed-off-by: Amitkumar Karwar <akarwar@xxxxxxxxxxx>
> 
> [...]
> 
> > --- a/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
> > +++ b/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
> > @@ -78,8 +78,15 @@ static int mwifiex_11n_dispatch_amsdu_pkt(struct
> mwifiex_private *priv,
> >   */
> >  static int mwifiex_11n_dispatch_pkt(struct mwifiex_private *priv,
> > void *payload)  {
> > -	int ret = mwifiex_11n_dispatch_amsdu_pkt(priv, payload);
> >
> > +	int ret;
> > +
> > +	if (payload == (void *)MWIFIEX_RX_PKT_DROPPED_IN_FW) {
> > +		mwifiex_dbg(priv->adapter, INFO, "info: fw drop data\n");
> > +		return 0;
> > +	}
> 
> [...]
> 
> > +					mwifiex_dbg(priv->adapter, ERROR,
> > +						    "drop packet,seq=%d\n",
> > +						    seq_num);
> > +
> > +					ret = mwifiex_11n_rx_reorder_pkt
> > +					(priv, seq_num, tlv_rxba->tid,
> > +					 tlv_rxba->mac, 0,
> > +					 (void *)MWIFIEX_RX_PKT_DROPPED_IN_FW);
> 
> [...]
> 
> > +/* Indicate packet has been dropped in FW */
> > +#define MWIFIEX_RX_PKT_DROPPED_IN_FW             0xffffffff
> 
> That pointer magic is rather ugly, why not use a proper boolean?
> 

Thanks for review. I will get rid of this macro and submit updated version.

Regards,
Amitkumar
--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux