aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/defs.h
diff options
context:
space:
mode:
authorBrian Cavagnolo <brian@cozybit.com>2008-07-21 14:02:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:49 -0400
commit1556c0f22df77800d2e99342ce354a4ce94c5a0f (patch)
tree76c8af4251f78f1afc4504135c9d355ca15d4127 /drivers/net/wireless/libertas/defs.h
parent38e3b0d86eaa0bf90a74677b6d6c442ec66daa0c (diff)
libertas: support boot commands to write persistent firmware and bootloader
Add locking and non-locking versions of if_usb_prog_firmware to support programming firmware after and before driver bring-up respectively. Add more suitable error codes for firmware programming process. Add capability checks for persistent features before attempting to use them. Based on patches from Brajesh Dave and Priyank Singh. Signed-off-by: Brian Cavagnolo <brian@cozybit.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/defs.h')
-rw-r--r--drivers/net/wireless/libertas/defs.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/defs.h b/drivers/net/wireless/libertas/defs.h
index 12e687550bce..4b2428ac2223 100644
--- a/drivers/net/wireless/libertas/defs.h
+++ b/drivers/net/wireless/libertas/defs.h
@@ -243,6 +243,9 @@ static inline void lbs_deb_hex(unsigned int grp, const char *prompt, u8 *buf, in
243 243
244#define CMD_F_HOSTCMD (1 << 0) 244#define CMD_F_HOSTCMD (1 << 0)
245#define FW_CAPINFO_WPA (1 << 0) 245#define FW_CAPINFO_WPA (1 << 0)
246#define FW_CAPINFO_FIRMWARE_UPGRADE (1 << 13)
247#define FW_CAPINFO_BOOT2_UPGRADE (1<<14)
248#define FW_CAPINFO_PERSISTENT_CONFIG (1<<15)
246 249
247#define KEY_LEN_WPA_AES 16 250#define KEY_LEN_WPA_AES 16
248#define KEY_LEN_WPA_TKIP 32 251#define KEY_LEN_WPA_TKIP 32
@@ -316,7 +319,8 @@ enum PS_STATE {
316enum DNLD_STATE { 319enum DNLD_STATE {
317 DNLD_RES_RECEIVED, 320 DNLD_RES_RECEIVED,
318 DNLD_DATA_SENT, 321 DNLD_DATA_SENT,
319 DNLD_CMD_SENT 322 DNLD_CMD_SENT,
323 DNLD_BOOTCMD_SENT,
320}; 324};
321 325
322/** LBS_MEDIA_STATE */ 326/** LBS_MEDIA_STATE */