76 "mac_control: only support set cmd\n");
105 u16 cmd_action,
u32 cmd_oid,
110 dev_dbg(priv->
adapter->dev,
"cmd: SNMP_CMD: cmd_oid = 0x%x\n", cmd_oid);
124 le16_add_cpu(&cmd->
size,
sizeof(
u16));
128 "cmd: SNMP_CMD: Action=0x%x, OID=0x%x, OIDSize=0x%x,"
162 u16 cmd_action,
u16 *pbitmap_rates)
179 if (pbitmap_rates !=
NULL) {
232 switch (cmd_action) {
236 *) ((
unsigned long) txp +
250 memmove(cmd_txp_cfg, txp,
sizeof(*txp));
341 "cmd: Attach %d bytes ArpFilter to HSCfg cmd\n",
363 "cmd: HS_CFG_CMD: condition:0x%x gpio:0x%x gap:0x%x\n",
380 static int mwifiex_cmd_802_11_mac_address(
struct mwifiex_private *priv,
433 static int mwifiex_cmd_802_11_deauthenticate(
struct mwifiex_private *priv,
478 int cur_key_param_len;
485 key_param_set->
type =
488 #define KEYPARAMSET_WEP_FIXED_LEN 8
492 KEYPARAMSET_WEP_FIXED_LEN));
501 key_param_set->
key[0] =
i;
506 key_param_set->
key[1] = 1;
508 key_param_set->
key[1] = 0;
513 cur_key_param_len = priv->
wep_key[
i].key_length +
516 *key_param_len += (
u16) cur_key_param_len;
519 ((
u8 *)key_param_set +
521 }
else if (!priv->
wep_key[i].key_length) {
525 "key%d Length = %d is incorrect\n",
526 (i + 1), priv->
wep_key[i].key_length);
546 u16 cmd_action,
u32 cmd_oid,
568 ret = mwifiex_set_keyparamset_wep(priv,
595 if (!is_broadcast_ether_addr(enc_key->
mac_addr)) {
713 sizeof(key_material->
action) +
717 sizeof(key_material->
action);
733 static int mwifiex_cmd_802_11d_domain_info(
struct mwifiex_private *priv,
744 dev_dbg(adapter->
dev,
"info: 11D: no_of_triplet=0x%x\n", no_of_triplet);
765 no_of_triplet *
sizeof(
struct
799 switch (cmd_action) {
834 u16 cmd_action,
void *data_buf)
908 cmd_eeprom->
value = 0;
996 event_bitmap = subsc_evt_cfg->
events;
1002 (event_bitmap == 0)) {
1004 "for bitwise action type\n");
1016 pos = ((
u8 *)subsc_evt) +
1030 "RSSI:-%d dBm, Freq:%d\n",
1035 le16_add_cpu(&cmd->
size,
1050 "RSSI:-%d dBm, Freq:%d\n",
1055 le16_add_cpu(&cmd->
size,
1069 u16 cmd_action,
u32 cmd_oid,
1070 void *data_buf,
void *
cmd_buf)
1081 ret = mwifiex_cmd_mac_control(priv, cmd_ptr, cmd_action,
1085 ret = mwifiex_cmd_802_11_mac_address(priv, cmd_ptr,
1089 ret = mwifiex_cmd_mac_multicast_adr(cmd_ptr, cmd_action,
1093 ret = mwifiex_cmd_tx_rate_cfg(priv, cmd_ptr, cmd_action,
1097 ret = mwifiex_cmd_tx_power_cfg(cmd_ptr, cmd_action,
1101 ret = mwifiex_cmd_rf_tx_power(priv, cmd_ptr, cmd_action,
1105 ret = mwifiex_cmd_rf_antenna(priv, cmd_ptr, cmd_action,
1113 ret = mwifiex_cmd_802_11_hs_cfg(priv, cmd_ptr, cmd_action,
1126 ret = mwifiex_cmd_802_11_deauthenticate(priv, cmd_ptr,
1134 ret = mwifiex_cmd_802_11_get_log(cmd_ptr);
1141 ret = mwifiex_cmd_802_11_ad_hoc_stop(cmd_ptr);
1144 ret = mwifiex_cmd_802_11_rssi_info(priv, cmd_ptr, cmd_action);
1147 ret = mwifiex_cmd_802_11_snmp_mib(priv, cmd_ptr, cmd_action,
1162 (
u8) (*((
u32 *) data_buf));
1216 ret = mwifiex_cmd_802_11_key_material(priv, cmd_ptr,
1217 cmd_action, cmd_oid,
1221 ret = mwifiex_cmd_802_11d_domain_info(priv, cmd_ptr,
1237 "cmd: WMM: WMM_GET_STATUS cmd sent\n");
1245 ret = mwifiex_cmd_ibss_coalescing_status(cmd_ptr, cmd_action,
1254 ret = mwifiex_cmd_reg_access(cmd_ptr, cmd_action, data_buf);
1271 ret = mwifiex_cmd_pcie_host_spec(priv, cmd_ptr, cmd_action);
1274 ret = mwifiex_cmd_802_11_subsc_evt(priv, cmd_ptr, data_buf);
1278 "PREP_CMD: unknown cmd- %#x\n", cmd_no);
1373 memset(&amsdu_aggr_ctrl, 0,
sizeof(amsdu_aggr_ctrl));
1374 amsdu_aggr_ctrl.
enable =
true;
1410 "11D: failed to enable 11D\n");