uwb: i1480/GUWA100U: fix firmware download issues
authorAnderson Lizardo <anderson.lizardo@indt.org.br>
Wed, 17 Sep 2008 15:34:38 +0000 (16:34 +0100)
committerDavid Vrabel <dv02@dv02pc01.europe.root.pri>
Wed, 17 Sep 2008 15:54:34 +0000 (16:54 +0100)
commitb5784f10d559b3c7b25874b21702ad0907b6fcb7
treec3e678d182a8c928cbb3660895458ed98e6c9b03
parent8c7e8cb85557cc500122f3e489936582b7d11a7c
uwb: i1480/GUWA100U: fix firmware download issues

IOGear firmware versions >= 1.4.12224 fail to be downloaded because of a
spurious (and harmless) RCEB received after the download notification. This
patch handles this RCEB and keeps compatibility with future versions that might
not emit this RCEB.

i1480_rceb_check() is reused to check for the RCEB. It is also refactored with
improved comments and reused in another place in mac.c where the checking was
being duplicated.

This patch was tested on both i1480 and GUWA100U HWAs, with all firmware
versions currently available.

Signed-off-by: Anderson Lizardo <anderson.lizardo@indt.org.br>
drivers/uwb/i1480/dfu/dfu.c
drivers/uwb/i1480/dfu/i1480-dfu.h
drivers/uwb/i1480/dfu/mac.c