prism2_rx (hostap_hw.c) patch
Lubomir Gelo
lgelo
Thu Jul 10 02:34:12 PDT 2003
On Wed, Jul 09, 2003 at 08:57:10PM +0300, Jouni Malinen wrote:
> On Tue, Jun 17, 2003 at 11:47:12AM +0200, Lubomir Gelo wrote:
>
> > Hostap 0.0.3 introduced bug in prism2_rx (hostap_hw.c) in calculating
> > size for dev_alloc_skb. Driver hangs in monitor mode if frame of
> > certain length is received. Verified with gcc-2.95 and gcc-3.3 and
> > secondary FW 1.4.9 and 1.5.6.
>
> Thanks for reporting this. I haven't seen this happening in my tests
> since my card did not seem to report triggering data_len values (STA f/w
> 1.5.6). However, I noticed that my card seemed to be delivering many
> Acknowledgement frames with invalid data_len and previous version of the
> driver was dropping these. Making this work better required a bit
> different patch from yours, but it should also fix the special cases.
> Please let me know if this version does not fix the hangs you have been
> seeing.
>
> I modified the RX path to accept such cases in monitor mode and handle
> shorter than RX desc skb's properly. These seemed to improve monitor
> mode operations at least for quick bursts of frames. Some Ack frames
> might be received with bogus data and incorrect length, but at least
> most Acks are now reported all the way to the sniffer program.
Notebook survived in monitor mode whole night in an area where with plain
0.0.3 it crashed in less than 3 seconds. So I think it's fixed.
Thank you.
LG
More information about the Hostap
mailing list