aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.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/cmdresp.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/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index 11b93f2cde88..1f74810a5e15 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -536,6 +536,24 @@ static int lbs_ret_802_11_enable_rsn(lbs_private * priv,
536 return 0; 536 return 0;
537} 537}
538 538
539static int lbs_ret_802_11_bcn_ctrl(struct lbs_private * priv,
540 struct cmd_ds_command *resp)
541{
542 struct cmd_ds_802_11_beacon_control *bcn_ctrl =
543 &resp->params.bcn_ctrl;
544 struct lbs_adapter *adapter = priv->adapter;
545
546 lbs_deb_enter(LBS_DEB_CMD);
547
548 if (bcn_ctrl->action == CMD_ACT_GET) {
549 adapter->beacon_enable = (u8) le16_to_cpu(bcn_ctrl->beacon_enable);
550 adapter->beacon_period = le16_to_cpu(bcn_ctrl->beacon_period);
551 }
552
553 lbs_deb_enter(LBS_DEB_CMD);
554 return 0;
555}
556
539static inline int handle_cmd_response(u16 respcmd, 557static inline int handle_cmd_response(u16 respcmd,
540 struct cmd_ds_command *resp, 558 struct cmd_ds_command *resp,
541 lbs_private *priv) 559 lbs_private *priv)
@@ -704,6 +722,10 @@ static inline int handle_cmd_response(u16 respcmd,
704 memcpy(adapter->cur_cmd->pdata_buf, &resp->params.mesh, 722 memcpy(adapter->cur_cmd->pdata_buf, &resp->params.mesh,
705 sizeof(resp->params.mesh)); 723 sizeof(resp->params.mesh));
706 break; 724 break;
725 case CMD_RET(CMD_802_11_BEACON_CTRL):
726 ret = lbs_ret_802_11_bcn_ctrl(priv, resp);
727 break;
728
707 default: 729 default:
708 lbs_deb_host("CMD_RESP: unknown cmd response 0x%04x\n", 730 lbs_deb_host("CMD_RESP: unknown cmd response 0x%04x\n",
709 resp->command); 731 resp->command);