mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
[PATCH] hostap: allow flashing firmware
Host AP driver has code to support writing firmware to non-volatile memory, a.k.a. flash. This code has been extensively tested when Host AP was a standalone driver. Add a configuration option to the kernel to allow enabling this functionality. Improve the description of the RAM download option. Mention cards that require it. Remove obsolete scary comment. Signed-off-by: Pavel Roskin <proski@gnu.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
d834a41c96
commit
a485cde662
2 changed files with 22 additions and 13 deletions
|
@ -26,11 +26,25 @@ config HOSTAP_FIRMWARE
|
||||||
depends on HOSTAP
|
depends on HOSTAP
|
||||||
---help---
|
---help---
|
||||||
Configure Host AP driver to include support for firmware image
|
Configure Host AP driver to include support for firmware image
|
||||||
download. Current version supports only downloading to volatile, i.e.,
|
download. This option by itself only enables downloading to the
|
||||||
RAM memory. Flash upgrade is not yet supported.
|
volatile memory, i.e. the card RAM. This option is required to
|
||||||
|
support cards that don't have firmware in flash, such as D-Link
|
||||||
|
DWL-520 rev E and D-Link DWL-650 rev P.
|
||||||
|
|
||||||
Firmware image downloading needs user space tool, prism2_srec. It is
|
Firmware image downloading needs a user space tool, prism2_srec.
|
||||||
available from http://hostap.epitest.fi/.
|
It is available from http://hostap.epitest.fi/.
|
||||||
|
|
||||||
|
config HOSTAP_FIRMWARE_NVRAM
|
||||||
|
bool "Support for non-volatile firmware download"
|
||||||
|
depends on HOSTAP_FIRMWARE
|
||||||
|
---help---
|
||||||
|
Allow Host AP driver to write firmware images to the non-volatile
|
||||||
|
card memory, i.e. flash memory that survives power cycling.
|
||||||
|
Enable this option if you want to be able to change card firmware
|
||||||
|
permanently.
|
||||||
|
|
||||||
|
Firmware image downloading needs a user space tool, prism2_srec.
|
||||||
|
It is available from http://hostap.epitest.fi/.
|
||||||
|
|
||||||
config HOSTAP_PLX
|
config HOSTAP_PLX
|
||||||
tristate "Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors"
|
tristate "Host AP driver for Prism2/2.5/3 in PLX9052 PCI adaptors"
|
||||||
|
|
|
@ -21,15 +21,10 @@
|
||||||
#define PRISM2_DOWNLOAD_SUPPORT
|
#define PRISM2_DOWNLOAD_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PRISM2_DOWNLOAD_SUPPORT
|
/* Allow kernel configuration to enable non-volatile download support. */
|
||||||
/* Allow writing firmware images into flash, i.e., to non-volatile storage.
|
#ifdef CONFIG_HOSTAP_FIRMWARE_NVRAM
|
||||||
* Before you enable this option, you should make absolutely sure that you are
|
#define PRISM2_NON_VOLATILE_DOWNLOAD
|
||||||
* using prism2_srec utility that comes with THIS version of the driver!
|
#endif
|
||||||
* In addition, please note that it is possible to kill your card with
|
|
||||||
* non-volatile download if you are using incorrect image. This feature has not
|
|
||||||
* been fully tested, so please be careful with it. */
|
|
||||||
/* #define PRISM2_NON_VOLATILE_DOWNLOAD */
|
|
||||||
#endif /* PRISM2_DOWNLOAD_SUPPORT */
|
|
||||||
|
|
||||||
/* Save low-level I/O for debugging. This should not be enabled in normal use.
|
/* Save low-level I/O for debugging. This should not be enabled in normal use.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue