aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorBrajesh Dave <brajeshd@marvell.com>2007-11-20 17:44:28 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:53 -0500
commit96287ac4f7b387acbe17e24b5e1bcbf3bc0e75cd (patch)
treef2dff3b7889ff430c66b1331cde0de8c5f6acafb /drivers/net/wireless/libertas/cmd.c
parent01d77d8d4747d73cfb6daf35cdc906a2db8ded9d (diff)
libertas: configurable beacon interval
Requires firmware version 5.110.19.p0 or newer, available here: http://dev.laptop.org/pub/firmware/libertas/ Signed-off-by: Ashish Shukla <ashishs@marvell.com> Signed-off-by: Javier Cardona <javier@cozybit.com> Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index b4d1b1485840..3702c5da1f6f 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -901,6 +901,28 @@ static int lbs_cmd_mesh_access(lbs_private * priv,
901 return 0; 901 return 0;
902} 902}
903 903
904static int lbs_cmd_bcn_ctrl(struct lbs_private * priv,
905 struct cmd_ds_command *cmd,
906 u16 cmd_action)
907{
908 struct cmd_ds_802_11_beacon_control
909 *bcn_ctrl = &cmd->params.bcn_ctrl;
910 struct lbs_adapter *adapter = priv->adapter;
911
912 lbs_deb_enter(LBS_DEB_CMD);
913 cmd->size =
914 cpu_to_le16(sizeof(struct cmd_ds_802_11_beacon_control)
915 + S_DS_GEN);
916 cmd->command = cpu_to_le16(CMD_802_11_BEACON_CTRL);
917
918 bcn_ctrl->action = cpu_to_le16(cmd_action);
919 bcn_ctrl->beacon_enable = cpu_to_le16(adapter->beacon_enable);
920 bcn_ctrl->beacon_period = cpu_to_le16(adapter->beacon_period);
921
922 lbs_deb_leave(LBS_DEB_CMD);
923 return 0;
924}
925
904static int lbs_cmd_set_boot2_ver(lbs_private * priv, 926static int lbs_cmd_set_boot2_ver(lbs_private * priv,
905 struct cmd_ds_command *cmd, 927 struct cmd_ds_command *cmd,
906 u16 cmd_action, void *pdata_buf) 928 u16 cmd_action, void *pdata_buf)
@@ -1400,6 +1422,9 @@ int lbs_prepare_and_send_command(lbs_private * priv,
1400 S_DS_GEN); 1422 S_DS_GEN);
1401 ret = 0; 1423 ret = 0;
1402 break; 1424 break;
1425 case CMD_802_11_BEACON_CTRL:
1426 ret = lbs_cmd_bcn_ctrl(priv, cmdptr, cmd_action);
1427 break;
1403 default: 1428 default:
1404 lbs_deb_host("PREP_CMD: unknown command 0x%04x\n", cmd_no); 1429 lbs_deb_host("PREP_CMD: unknown command 0x%04x\n", cmd_no);
1405 ret = -1; 1430 ret = -1;