[PATCH] Flash download works!!!
Mon Apr 14 20:18:04 PDT 2003
On Sun, Apr 13, 2003 at 06:50:02PM -0700, Jouni Malinen wrote:
> On Sun, Apr 13, 2003 at 08:04:04PM -0400, Pavel Roskin wrote:
> > The patch for firmware download is also attached, but it needs some work.
> > The card cannot be reset after download, so prism2_srec reports an error.
> > It's sufficient to eject and insert the card to see the new firmware.
> I would hope that COR sreset could be enough to get the card running
> after non-volatile download. I haven't yet tested this, but will start
> testing after I can reflash my test card.
My dead test card has been resurrected. :-) That was easy; big thanks
to Raffaele for providing information on how to do this with DOS flash
Indeed, COR sreset was enough. I just fixed the download code to first
set hw_downloading to zero before trying to configure card. This will
make prism2_srec report "OK" and not "Download failed" after flash
upgrade. In addition, I added a warning about the duration of the flash
operation and suggestion of not to remove card during it.. These should
make the first time someone updates STA firmware in flash with
prism2_srec a bit less scary experience ;-).
Jouni Malinen PGP id EFC895FA
More information about the Hostap