Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Oct 2010 11:26:22 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/iwi if_iwi.c
Message-ID:  <201010231126.o9NBQX8c041778@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
bschmidt    2010-10-23 11:26:22 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/iwi          if_iwi.c 
  Log:
  SVN rev 214236 on 2010-10-23 11:26:22Z by bschmidt
  
  The firmware does pad notifications to an even number of bytes (at least
  the association notification), the included information though always
  contains an elem block with an odd number of bytes. We handle the last
  byte as if it might contain a whole elem block, this of course is not
  true as one byte is not enough to hold a block, we therefore discard the
  complete frame. The solution here is to subtract one from the actual
  notification length, this is also what the Linux driver does. With this
  change the frames ends exactly where the last elem block ends.
  
  This commit also reverts r214160 which is no longer required and now even
  wrong.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.77      +2 -2      src/sys/dev/iwi/if_iwi.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010231126.o9NBQX8c041778>