-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Avinash Patil
authored and
John W. Linville
committed
May 16, 2012
1 parent
30a1265
commit af8d8e4
Showing
7 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 75edd2c6803aec27083643e21aeb9b531587803f | ||
refs/heads/master: 40d07030625840156bffe2da3e9f14f87d7a4a99 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Marvell Wireless LAN device driver: AP specific command handling | ||
* | ||
* Copyright (C) 2012, Marvell International Ltd. | ||
* | ||
* This software file (the "File") is distributed by Marvell International | ||
* Ltd. under the terms of the GNU General Public License Version 2, June 1991 | ||
* (the "License"). You may use, redistribute and/or modify this File in | ||
* accordance with the terms and conditions of the License, a copy of which | ||
* is available by writing to the Free Software Foundation, Inc., | ||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the | ||
* worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. | ||
* | ||
* THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE EXPRESSLY DISCLAIMED. The License provides additional details about | ||
* this warranty disclaimer. | ||
*/ | ||
|
||
#include "main.h" | ||
|
||
/* This function prepares the AP specific commands before sending them | ||
* to the firmware. | ||
* This is a generic function which calls specific command preparation | ||
* routines based upon the command number. | ||
*/ | ||
int mwifiex_uap_prepare_cmd(struct mwifiex_private *priv, u16 cmd_no, | ||
u16 cmd_action, u32 cmd_oid, | ||
void *data_buf, void *cmd_buf) | ||
{ | ||
struct host_cmd_ds_command *cmd = cmd_buf; | ||
|
||
switch (cmd_no) { | ||
case HostCmd_CMD_UAP_BSS_START: | ||
case HostCmd_CMD_UAP_BSS_STOP: | ||
cmd->command = cpu_to_le16(cmd_no); | ||
cmd->size = cpu_to_le16(S_DS_GEN); | ||
break; | ||
default: | ||
dev_err(priv->adapter->dev, | ||
"PREP_CMD: unknown cmd %#x\n", cmd_no); | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |