summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/main.c
diff options
context:
space:
mode:
authorLuis Carlos Cobo2007-08-02 19:19:24 +0200
committerDavid S. Miller2007-10-11 01:50:15 +0200
commit63f0023bc34073bea8452a4770540c954f98208f (patch)
treea38556a66eb9ca81a2bac770ba32e3c6fe5f234a /drivers/net/wireless/libertas/main.c
parent[PATCH] libertas: push WEXT scan requests to a work queue (diff)
downloadkernel-qcow2-linux-63f0023bc34073bea8452a4770540c954f98208f.tar.gz
kernel-qcow2-linux-63f0023bc34073bea8452a4770540c954f98208f.tar.xz
kernel-qcow2-linux-63f0023bc34073bea8452a4770540c954f98208f.zip
[PATCH] libertas: pass boot2 version to firmware
Boot2 version used to be hardcoded in the uploaded firmware, this patch preserves the boot2 version before uploading firmware and sends it to the firmware again on resume. Signed-off-by: Luis Carlos Cobo <luisca@cozybit.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/main.c')
-rw-r--r--drivers/net/wireless/libertas/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index bcd845060d4a..e20cd4e9ffc1 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -981,6 +981,10 @@ static int wlan_setup_station_hw(wlan_private * priv)
priv->mesh_autostart_enabled = 0;
}
+ /* Set the boot2 version in firmware */
+ ret = libertas_prepare_and_send_command(priv, CMD_SET_BOOT2_VER,
+ 0, CMD_OPTION_WAITFORRSP, 0, NULL);
+
ret = 0;
done:
lbs_deb_leave_args(LBS_DEB_FW, "ret %d", ret);