51 dev_err(adapter->
dev,
"CMD_RESP: cmd %#x error, result=%#x\n",
54 if (adapter->
curr_cmd->wait_q_enabled)
61 "PS_MODE_ENH cmd failed: result=0x%x action=0x%X\n",
191 " query_type = %#x, buf size = %#x\n",
200 "info: SNMP_RESP: FragThsd =%u\n", ul_temp);
204 "info: SNMP_RESP: RTSThsd =%u\n", ul_temp);
208 "info: SNMP_RESP: TxRetryCount=%u\n", ul_temp);
212 "info: SNMP_RESP: DTIM period=%u\n", ul_temp);
284 tlv_buf = ((
u8 *)rate_cfg) +
286 tlv_buf_len = *(
u16 *) (tlv_buf +
sizeof(
u16));
288 while (tlv_buf && tlv_buf_len > 0) {
290 tlv = tlv | (*(tlv_buf + 1) << 8);
333 static int mwifiex_get_power_level(
struct mwifiex_private *priv,
void *data_buf)
346 length = pg_tlv_hdr->
length;
362 if (pg_tlv_hdr->
length > 0) {
397 mwifiex_get_power_level(priv, txp_cfg);
418 dev_err(adapter->
dev,
"CMD_RESP: unknown cmd action %d\n",
423 "info: Current TxPower Level = %d, Max Power=%d, Min Power=%d\n",
447 "Current TxPower Level=%d, Max Power=%d, Min Power=%d\n",
466 "RF_ANT_RESP: Tx action = 0x%x, Tx Mode = 0x%04x"
467 " Rx action = 0x%x, Rx Mode = 0x%04x\n",
474 "RF_ANT_RESP: action = 0x%x, Mode = 0x%04x\n",
486 static int mwifiex_ret_802_11_mac_address(
struct mwifiex_private *priv,
495 "info: set mac address: %pM\n", priv->
curr_addr);
519 static int mwifiex_ret_802_11_tx_rate_query(
struct mwifiex_private *priv,
539 static int mwifiex_ret_802_11_deauthenticate(
struct mwifiex_private *priv,
544 adapter->
dbg.num_cmd_deauth++;
558 static int mwifiex_ret_802_11_ad_hoc_stop(
struct mwifiex_private *priv,
571 static int mwifiex_ret_802_11_key_material(
struct mwifiex_private *priv,
597 static int mwifiex_ret_802_11d_domain_info(
struct mwifiex_private *priv,
611 "info: 11D Domain Info Resp: no_of_triplet=%d\n",
616 "11D: invalid number of triplets %d returned\n",
628 "11D: invalid action:%d\n", domain_info->
action);
667 memcpy(roc_cfg, resp_cfg,
sizeof(*roc_cfg));
716 reg_rw->
value =
r.mac->value;
741 pr_debug(
"info: EEPROM read len=%x\n",
r.eeprom->byte_count);
745 pr_debug(
"info: EEPROM read length is too big\n");
748 eeprom->
offset =
r.eeprom->offset;
768 static int mwifiex_ret_ibss_coalescing_status(
struct mwifiex_private *priv,
778 "info: new BSSID %pM\n", ibss_coal_resp->
bssid);
781 if (is_zero_ether_addr(ibss_coal_resp->
bssid)) {
818 dev_dbg(priv->
adapter->dev,
"Bitmap of currently subscribed events: %16x\n",
835 void *data_buf = adapter->
curr_cmd->data_buf;
839 mwifiex_process_cmdresp_error(priv, resp);
843 switch (cmdresp_no) {
850 ret = mwifiex_ret_802_11_mac_address(priv, resp);
853 ret = mwifiex_ret_mac_multicast_adr(priv, resp);
856 ret = mwifiex_ret_tx_rate_cfg(priv, resp);
860 adapter->
curr_cmd->wait_q_enabled =
false;
865 "info: CMD_RESP: BG_SCAN result is ready!\n");
868 ret = mwifiex_ret_tx_power_cfg(priv, resp);
871 ret = mwifiex_ret_rf_tx_power(priv, resp);
874 ret = mwifiex_ret_rf_antenna(priv, resp);
886 ret = mwifiex_ret_802_11_deauthenticate(priv, resp);
893 ret = mwifiex_ret_802_11_ad_hoc_stop(priv, resp);
896 ret = mwifiex_ret_get_log(priv, resp, data_buf);
899 ret = mwifiex_ret_802_11_rssi_info(priv, resp);
902 ret = mwifiex_ret_802_11_snmp_mib(priv, resp, data_buf);
905 ret = mwifiex_ret_802_11_tx_rate_query(priv, resp);
908 ret = mwifiex_ret_ver_ext(priv, resp, data_buf);
911 ret = mwifiex_ret_remain_on_chan(priv, resp, data_buf);
914 ret = mwifiex_ret_p2p_mode_cfg(priv, resp, data_buf);
921 ret = mwifiex_ret_802_11_key_material(priv, resp);
924 ret = mwifiex_ret_802_11d_domain_info(priv, resp);
943 "cmd: max_tx_buf_size=%d, tx_buf_size=%d\n",
946 if (adapter->
if_ops.update_mp_end_port)
947 adapter->
if_ops.update_mp_end_port(adapter,
956 ret = mwifiex_ret_ibss_coalescing_status(priv, resp);
964 ret = mwifiex_ret_reg_access(cmdresp_no, resp, data_buf);
973 ret = mwifiex_ret_subsc_evt(priv, resp);
984 dev_err(adapter->
dev,
"CMD_RESP: unknown cmd response %#x\n",