Commit cdeb8602 authored by Kalle Valo's avatar Kalle Valo

ath6kl: merge split format strings into one

Found by checkpatch:

WARNING: quoted string split across lines
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent ae9a3405
...@@ -693,8 +693,8 @@ ath6kl_add_bss_if_needed(struct ath6kl_vif *vif, ...@@ -693,8 +693,8 @@ ath6kl_add_bss_if_needed(struct ath6kl_vif *vif,
ie, 2 + vif->ssid_len + beacon_ie_len, ie, 2 + vif->ssid_len + beacon_ie_len,
0, GFP_KERNEL); 0, GFP_KERNEL);
if (bss) if (bss)
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "added bss %pM to " ath6kl_dbg(ATH6KL_DBG_WLAN_CFG,
"cfg80211\n", bssid); "added bss %pM to cfg80211\n", bssid);
kfree(ie); kfree(ie);
} else } else
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "cfg80211 already has a bss\n"); ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "cfg80211 already has a bss\n");
...@@ -927,8 +927,7 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, ...@@ -927,8 +927,7 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
WMI_FRAME_PROBE_REQ, WMI_FRAME_PROBE_REQ,
request->ie, request->ie_len); request->ie, request->ie_len);
if (ret) { if (ret) {
ath6kl_err("failed to set Probe Request appie for " ath6kl_err("failed to set Probe Request appie for scan");
"scan");
return ret; return ret;
} }
...@@ -945,8 +944,7 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, ...@@ -945,8 +944,7 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
channels = kzalloc(n_channels * sizeof(u16), GFP_KERNEL); channels = kzalloc(n_channels * sizeof(u16), GFP_KERNEL);
if (channels == NULL) { if (channels == NULL) {
ath6kl_warn("failed to set scan channels, " ath6kl_warn("failed to set scan channels, scan all channels");
"scan all channels");
n_channels = 0; n_channels = 0;
} }
...@@ -1125,9 +1123,8 @@ static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1125,9 +1123,8 @@ static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
ar->ap_mode_bkey.key_len = key->key_len; ar->ap_mode_bkey.key_len = key->key_len;
memcpy(ar->ap_mode_bkey.key, key->key, key->key_len); memcpy(ar->ap_mode_bkey.key, key->key, key->key_len);
if (!test_bit(CONNECTED, &vif->flags)) { if (!test_bit(CONNECTED, &vif->flags)) {
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "Delay initial group " ath6kl_dbg(ATH6KL_DBG_WLAN_CFG,
"key configuration until AP mode has been " "Delay initial group key configuration until AP mode has been started\n");
"started\n");
/* /*
* The key will be set in ath6kl_connect_ap_mode() once * The key will be set in ath6kl_connect_ap_mode() once
* the connected event is received from the target. * the connected event is received from the target.
...@@ -1143,8 +1140,8 @@ static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev, ...@@ -1143,8 +1140,8 @@ static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
* the AP mode has properly started * the AP mode has properly started
* (ath6kl_install_statioc_wep_keys). * (ath6kl_install_statioc_wep_keys).
*/ */
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "Delay WEP key configuration " ath6kl_dbg(ATH6KL_DBG_WLAN_CFG,
"until AP mode has been started\n"); "Delay WEP key configuration until AP mode has been started\n");
vif->wep_key_list[key_index].key_len = key->key_len; vif->wep_key_list[key_index].key_len = key->key_len;
memcpy(vif->wep_key_list[key_index].key, key->key, memcpy(vif->wep_key_list[key_index].key, key->key,
key->key_len); key->key_len);
...@@ -1976,8 +1973,7 @@ static int ath6kl_wow_sta(struct ath6kl *ar, struct ath6kl_vif *vif) ...@@ -1976,8 +1973,7 @@ static int ath6kl_wow_sta(struct ath6kl *ar, struct ath6kl_vif *vif)
sizeof(discvr_pattern), discvr_offset, sizeof(discvr_pattern), discvr_offset,
discvr_pattern, discvr_mask); discvr_pattern, discvr_mask);
if (ret) { if (ret) {
ath6kl_err("failed to add WOW mDNS/SSDP/LLMNR " ath6kl_err("failed to add WOW mDNS/SSDP/LLMNR pattern\n");
"pattern\n");
return ret; return ret;
} }
} }
...@@ -2161,8 +2157,8 @@ static int ath6kl_wow_resume(struct ath6kl *ar) ...@@ -2161,8 +2157,8 @@ static int ath6kl_wow_resume(struct ath6kl *ar)
ret = ath6kl_wmi_set_host_sleep_mode_cmd(ar->wmi, vif->fw_vif_idx, ret = ath6kl_wmi_set_host_sleep_mode_cmd(ar->wmi, vif->fw_vif_idx,
ATH6KL_HOST_MODE_AWAKE); ATH6KL_HOST_MODE_AWAKE);
if (ret) { if (ret) {
ath6kl_warn("Failed to configure host sleep mode for " ath6kl_warn("Failed to configure host sleep mode for wow resume: %d\n",
"wow resume: %d\n", ret); ret);
ar->state = ATH6KL_STATE_WOW; ar->state = ATH6KL_STATE_WOW;
return ret; return ret;
} }
...@@ -3292,8 +3288,7 @@ void ath6kl_cfg80211_stop_all(struct ath6kl *ar) ...@@ -3292,8 +3288,7 @@ void ath6kl_cfg80211_stop_all(struct ath6kl *ar)
ar->wmi->saved_pwr_mode = ar->wmi->pwr_mode; ar->wmi->saved_pwr_mode = ar->wmi->pwr_mode;
if (ath6kl_wmi_powermode_cmd(ar->wmi, 0, REC_POWER) != 0) if (ath6kl_wmi_powermode_cmd(ar->wmi, 0, REC_POWER) != 0)
ath6kl_warn("ath6kl_deep_sleep_enable: " ath6kl_warn("ath6kl_deep_sleep_enable: wmi_powermode_cmd failed\n");
"wmi_powermode_cmd failed\n");
return; return;
} }
......
...@@ -463,9 +463,9 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx) ...@@ -463,9 +463,9 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
P2P_FLAG_MACADDR_REQ | P2P_FLAG_MACADDR_REQ |
P2P_FLAG_HMODEL_REQ); P2P_FLAG_HMODEL_REQ);
if (ret) { if (ret) {
ath6kl_dbg(ATH6KL_DBG_TRC, "failed to request P2P " ath6kl_dbg(ATH6KL_DBG_TRC,
"capabilities (%d) - assuming P2P not " "failed to request P2P capabilities (%d) - assuming P2P not supported\n",
"supported\n", ret); ret);
ar->p2p = false; ar->p2p = false;
} }
} }
...@@ -474,8 +474,9 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx) ...@@ -474,8 +474,9 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx)
/* Enable Probe Request reporting for P2P */ /* Enable Probe Request reporting for P2P */
ret = ath6kl_wmi_probe_report_req_cmd(ar->wmi, idx, true); ret = ath6kl_wmi_probe_report_req_cmd(ar->wmi, idx, true);
if (ret) { if (ret) {
ath6kl_dbg(ATH6KL_DBG_TRC, "failed to enable Probe " ath6kl_dbg(ATH6KL_DBG_TRC,
"Request reporting (%d)\n", ret); "failed to enable Probe Request reporting (%d)\n",
ret);
} }
} }
......
...@@ -421,8 +421,8 @@ void ath6kl_connect_ap_mode_bss(struct ath6kl_vif *vif, u16 channel) ...@@ -421,8 +421,8 @@ void ath6kl_connect_ap_mode_bss(struct ath6kl_vif *vif, u16 channel)
if (!ik->valid) if (!ik->valid)
break; break;
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "Delayed addkey for " ath6kl_dbg(ATH6KL_DBG_WLAN_CFG,
"the initial group key for AP mode\n"); "Delayed addkey for the initial group key for AP mode\n");
memset(key_rsc, 0, sizeof(key_rsc)); memset(key_rsc, 0, sizeof(key_rsc));
res = ath6kl_wmi_addkey_cmd( res = ath6kl_wmi_addkey_cmd(
ar->wmi, vif->fw_vif_idx, ik->key_index, ik->key_type, ar->wmi, vif->fw_vif_idx, ik->key_index, ik->key_type,
...@@ -430,8 +430,8 @@ void ath6kl_connect_ap_mode_bss(struct ath6kl_vif *vif, u16 channel) ...@@ -430,8 +430,8 @@ void ath6kl_connect_ap_mode_bss(struct ath6kl_vif *vif, u16 channel)
ik->key, ik->key,
KEY_OP_INIT_VAL, NULL, SYNC_BOTH_WMIFLAG); KEY_OP_INIT_VAL, NULL, SYNC_BOTH_WMIFLAG);
if (res) { if (res) {
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "Delayed " ath6kl_dbg(ATH6KL_DBG_WLAN_CFG,
"addkey failed: %d\n", res); "Delayed addkey failed: %d\n", res);
} }
break; break;
} }
......
...@@ -985,9 +985,8 @@ static int ath6kl_set_addrwin_reg(struct ath6kl *ar, u32 reg_addr, u32 addr) ...@@ -985,9 +985,8 @@ static int ath6kl_set_addrwin_reg(struct ath6kl *ar, u32 reg_addr, u32 addr)
} }
if (status) { if (status) {
ath6kl_err("%s: failed to write initial bytes of 0x%x " ath6kl_err("%s: failed to write initial bytes of 0x%x to window reg: 0x%X\n",
"to window reg: 0x%X\n", __func__, __func__, addr, reg_addr);
addr, reg_addr);
return status; return status;
} }
...@@ -1076,8 +1075,8 @@ static int ath6kl_sdio_bmi_credits(struct ath6kl *ar) ...@@ -1076,8 +1075,8 @@ static int ath6kl_sdio_bmi_credits(struct ath6kl *ar)
(u8 *)&ar->bmi.cmd_credits, 4, (u8 *)&ar->bmi.cmd_credits, 4,
HIF_RD_SYNC_BYTE_INC); HIF_RD_SYNC_BYTE_INC);
if (ret) { if (ret) {
ath6kl_err("Unable to decrement the command credit " ath6kl_err("Unable to decrement the command credit count register: %d\n",
"count register: %d\n", ret); ret);
return ret; return ret;
} }
......
...@@ -460,8 +460,9 @@ static int ath6kl_wmi_remain_on_chnl_event_rx(struct wmi *wmi, u8 *datap, ...@@ -460,8 +460,9 @@ static int ath6kl_wmi_remain_on_chnl_event_rx(struct wmi *wmi, u8 *datap,
freq, dur); freq, dur);
chan = ieee80211_get_channel(ar->wiphy, freq); chan = ieee80211_get_channel(ar->wiphy, freq);
if (!chan) { if (!chan) {
ath6kl_dbg(ATH6KL_DBG_WMI, "remain_on_chnl: Unknown channel " ath6kl_dbg(ATH6KL_DBG_WMI,
"(freq=%u)\n", freq); "remain_on_chnl: Unknown channel (freq=%u)\n",
freq);
return -EINVAL; return -EINVAL;
} }
id = vif->last_roc_id; id = vif->last_roc_id;
...@@ -488,12 +489,14 @@ static int ath6kl_wmi_cancel_remain_on_chnl_event_rx(struct wmi *wmi, ...@@ -488,12 +489,14 @@ static int ath6kl_wmi_cancel_remain_on_chnl_event_rx(struct wmi *wmi,
ev = (struct wmi_cancel_remain_on_chnl_event *) datap; ev = (struct wmi_cancel_remain_on_chnl_event *) datap;
freq = le32_to_cpu(ev->freq); freq = le32_to_cpu(ev->freq);
dur = le32_to_cpu(ev->duration); dur = le32_to_cpu(ev->duration);
ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: freq=%u dur=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"status=%u\n", freq, dur, ev->status); "cancel_remain_on_chnl: freq=%u dur=%u status=%u\n",
freq, dur, ev->status);
chan = ieee80211_get_channel(ar->wiphy, freq); chan = ieee80211_get_channel(ar->wiphy, freq);
if (!chan) { if (!chan) {
ath6kl_dbg(ATH6KL_DBG_WMI, "cancel_remain_on_chnl: Unknown " ath6kl_dbg(ATH6KL_DBG_WMI,
"channel (freq=%u)\n", freq); "cancel_remain_on_chnl: Unknown channel (freq=%u)\n",
freq);
return -EINVAL; return -EINVAL;
} }
if (vif->last_cancel_roc_id && if (vif->last_cancel_roc_id &&
...@@ -548,12 +551,12 @@ static int ath6kl_wmi_rx_probe_req_event_rx(struct wmi *wmi, u8 *datap, int len, ...@@ -548,12 +551,12 @@ static int ath6kl_wmi_rx_probe_req_event_rx(struct wmi *wmi, u8 *datap, int len,
freq = le32_to_cpu(ev->freq); freq = le32_to_cpu(ev->freq);
dlen = le16_to_cpu(ev->len); dlen = le16_to_cpu(ev->len);
if (datap + len < ev->data + dlen) { if (datap + len < ev->data + dlen) {
ath6kl_err("invalid wmi_p2p_rx_probe_req_event: " ath6kl_err("invalid wmi_p2p_rx_probe_req_event: len=%d dlen=%u\n",
"len=%d dlen=%u\n", len, dlen); len, dlen);
return -EINVAL; return -EINVAL;
} }
ath6kl_dbg(ATH6KL_DBG_WMI, "rx_probe_req: len=%u freq=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"probe_req_report=%d\n", "rx_probe_req: len=%u freq=%u probe_req_report=%d\n",
dlen, freq, vif->probe_req_report); dlen, freq, vif->probe_req_report);
if (vif->probe_req_report || vif->nw_type == AP_NETWORK) if (vif->probe_req_report || vif->nw_type == AP_NETWORK)
...@@ -592,8 +595,8 @@ static int ath6kl_wmi_rx_action_event_rx(struct wmi *wmi, u8 *datap, int len, ...@@ -592,8 +595,8 @@ static int ath6kl_wmi_rx_action_event_rx(struct wmi *wmi, u8 *datap, int len,
freq = le32_to_cpu(ev->freq); freq = le32_to_cpu(ev->freq);
dlen = le16_to_cpu(ev->len); dlen = le16_to_cpu(ev->len);
if (datap + len < ev->data + dlen) { if (datap + len < ev->data + dlen) {
ath6kl_err("invalid wmi_rx_action_event: " ath6kl_err("invalid wmi_rx_action_event: len=%d dlen=%u\n",
"len=%d dlen=%u\n", len, dlen); len, dlen);
return -EINVAL; return -EINVAL;
} }
ath6kl_dbg(ATH6KL_DBG_WMI, "rx_action: len=%u freq=%u\n", dlen, freq); ath6kl_dbg(ATH6KL_DBG_WMI, "rx_action: len=%u freq=%u\n", dlen, freq);
...@@ -777,16 +780,15 @@ static int ath6kl_wmi_connect_event_rx(struct wmi *wmi, u8 *datap, int len, ...@@ -777,16 +780,15 @@ static int ath6kl_wmi_connect_event_rx(struct wmi *wmi, u8 *datap, int len,
/* AP mode start/STA connected event */ /* AP mode start/STA connected event */
struct net_device *dev = vif->ndev; struct net_device *dev = vif->ndev;
if (memcmp(dev->dev_addr, ev->u.ap_bss.bssid, ETH_ALEN) == 0) { if (memcmp(dev->dev_addr, ev->u.ap_bss.bssid, ETH_ALEN) == 0) {
ath6kl_dbg(ATH6KL_DBG_WMI, "%s: freq %d bssid %pM " ath6kl_dbg(ATH6KL_DBG_WMI,
"(AP started)\n", "%s: freq %d bssid %pM (AP started)\n",
__func__, le16_to_cpu(ev->u.ap_bss.ch), __func__, le16_to_cpu(ev->u.ap_bss.ch),
ev->u.ap_bss.bssid); ev->u.ap_bss.bssid);
ath6kl_connect_ap_mode_bss( ath6kl_connect_ap_mode_bss(
vif, le16_to_cpu(ev->u.ap_bss.ch)); vif, le16_to_cpu(ev->u.ap_bss.ch));
} else { } else {
ath6kl_dbg(ATH6KL_DBG_WMI, "%s: aid %u mac_addr %pM " ath6kl_dbg(ATH6KL_DBG_WMI,
"auth=%u keymgmt=%u cipher=%u apsd_info=%u " "%s: aid %u mac_addr %pM auth=%u keymgmt=%u cipher=%u apsd_info=%u (STA connected)\n",
"(STA connected)\n",
__func__, ev->u.ap_sta.aid, __func__, ev->u.ap_sta.aid,
ev->u.ap_sta.mac_addr, ev->u.ap_sta.mac_addr,
ev->u.ap_sta.auth, ev->u.ap_sta.auth,
...@@ -1229,8 +1231,9 @@ static int ath6kl_wmi_neighbor_report_event_rx(struct wmi *wmi, u8 *datap, ...@@ -1229,8 +1231,9 @@ static int ath6kl_wmi_neighbor_report_event_rx(struct wmi *wmi, u8 *datap,
ev = (struct wmi_neighbor_report_event *) datap; ev = (struct wmi_neighbor_report_event *) datap;
if (sizeof(*ev) + ev->num_neighbors * sizeof(struct wmi_neighbor_info) if (sizeof(*ev) + ev->num_neighbors * sizeof(struct wmi_neighbor_info)
> len) { > len) {
ath6kl_dbg(ATH6KL_DBG_WMI, "truncated neighbor event " ath6kl_dbg(ATH6KL_DBG_WMI,
"(num=%d len=%d)\n", ev->num_neighbors, len); "truncated neighbor event (num=%d len=%d)\n",
ev->num_neighbors, len);
return -EINVAL; return -EINVAL;
} }
for (i = 0; i < ev->num_neighbors; i++) { for (i = 0; i < ev->num_neighbors; i++) {
...@@ -2129,8 +2132,8 @@ int ath6kl_wmi_addkey_cmd(struct wmi *wmi, u8 if_idx, u8 key_index, ...@@ -2129,8 +2132,8 @@ int ath6kl_wmi_addkey_cmd(struct wmi *wmi, u8 if_idx, u8 key_index,
struct wmi_add_cipher_key_cmd *cmd; struct wmi_add_cipher_key_cmd *cmd;
int ret; int ret;
ath6kl_dbg(ATH6KL_DBG_WMI, "addkey cmd: key_index=%u key_type=%d " ath6kl_dbg(ATH6KL_DBG_WMI,
"key_usage=%d key_len=%d key_op_ctrl=%d\n", "addkey cmd: key_index=%u key_type=%d key_usage=%d key_len=%d key_op_ctrl=%d\n",
key_index, key_type, key_usage, key_len, key_op_ctrl); key_index, key_type, key_usage, key_len, key_op_ctrl);
if ((key_index > WMI_MAX_KEY_INDEX) || (key_len > WMI_MAX_KEY_LEN) || if ((key_index > WMI_MAX_KEY_INDEX) || (key_len > WMI_MAX_KEY_LEN) ||
...@@ -3047,8 +3050,8 @@ int ath6kl_wmi_ap_profile_commit(struct wmi *wmip, u8 if_idx, ...@@ -3047,8 +3050,8 @@ int ath6kl_wmi_ap_profile_commit(struct wmi *wmip, u8 if_idx,
res = ath6kl_wmi_cmd_send(wmip, if_idx, skb, WMI_AP_CONFIG_COMMIT_CMDID, res = ath6kl_wmi_cmd_send(wmip, if_idx, skb, WMI_AP_CONFIG_COMMIT_CMDID,
NO_SYNC_WMIFLAG); NO_SYNC_WMIFLAG);
ath6kl_dbg(ATH6KL_DBG_WMI, "%s: nw_type=%u auth_mode=%u ch=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"ctrl_flags=0x%x-> res=%d\n", "%s: nw_type=%u auth_mode=%u ch=%u ctrl_flags=0x%x-> res=%d\n",
__func__, p->nw_type, p->auth_mode, le16_to_cpu(p->ch), __func__, p->nw_type, p->auth_mode, le16_to_cpu(p->ch),
le32_to_cpu(p->ctrl_flags), res); le32_to_cpu(p->ctrl_flags), res);
return res; return res;
...@@ -3208,8 +3211,9 @@ int ath6kl_wmi_set_appie_cmd(struct wmi *wmi, u8 if_idx, u8 mgmt_frm_type, ...@@ -3208,8 +3211,9 @@ int ath6kl_wmi_set_appie_cmd(struct wmi *wmi, u8 if_idx, u8 mgmt_frm_type,
if (!skb) if (!skb)
return -ENOMEM; return -ENOMEM;
ath6kl_dbg(ATH6KL_DBG_WMI, "set_appie_cmd: mgmt_frm_type=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"ie_len=%u\n", mgmt_frm_type, ie_len); "set_appie_cmd: mgmt_frm_type=%u ie_len=%u\n",
mgmt_frm_type, ie_len);
p = (struct wmi_set_appie_cmd *) skb->data; p = (struct wmi_set_appie_cmd *) skb->data;
p->mgmt_frm_type = mgmt_frm_type; p->mgmt_frm_type = mgmt_frm_type;
p->ie_len = ie_len; p->ie_len = ie_len;
...@@ -3310,8 +3314,9 @@ static int ath6kl_wmi_send_action_cmd(struct wmi *wmi, u8 if_idx, u32 id, ...@@ -3310,8 +3314,9 @@ static int ath6kl_wmi_send_action_cmd(struct wmi *wmi, u8 if_idx, u32 id,
wmi->last_mgmt_tx_frame = buf; wmi->last_mgmt_tx_frame = buf;
wmi->last_mgmt_tx_frame_len = data_len; wmi->last_mgmt_tx_frame_len = data_len;
ath6kl_dbg(ATH6KL_DBG_WMI, "send_action_cmd: id=%u freq=%u wait=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"len=%u\n", id, freq, wait, data_len); "send_action_cmd: id=%u freq=%u wait=%u len=%u\n",
id, freq, wait, data_len);
p = (struct wmi_send_action_cmd *) skb->data; p = (struct wmi_send_action_cmd *) skb->data;
p->id = cpu_to_le32(id); p->id = cpu_to_le32(id);
p->freq = cpu_to_le32(freq); p->freq = cpu_to_le32(freq);
...@@ -3348,8 +3353,9 @@ static int __ath6kl_wmi_send_mgmt_cmd(struct wmi *wmi, u8 if_idx, u32 id, ...@@ -3348,8 +3353,9 @@ static int __ath6kl_wmi_send_mgmt_cmd(struct wmi *wmi, u8 if_idx, u32 id,
wmi->last_mgmt_tx_frame = buf; wmi->last_mgmt_tx_frame = buf;
wmi->last_mgmt_tx_frame_len = data_len; wmi->last_mgmt_tx_frame_len = data_len;
ath6kl_dbg(ATH6KL_DBG_WMI, "send_action_cmd: id=%u freq=%u wait=%u " ath6kl_dbg(ATH6KL_DBG_WMI,
"len=%u\n", id, freq, wait, data_len); "send_action_cmd: id=%u freq=%u wait=%u len=%u\n",
id, freq, wait, data_len);
p = (struct wmi_send_mgmt_cmd *) skb->data; p = (struct wmi_send_mgmt_cmd *) skb->data;
p->id = cpu_to_le32(id); p->id = cpu_to_le32(id);
p->freq = cpu_to_le32(freq); p->freq = cpu_to_le32(freq);
...@@ -3402,8 +3408,9 @@ int ath6kl_wmi_send_probe_response_cmd(struct wmi *wmi, u8 if_idx, u32 freq, ...@@ -3402,8 +3408,9 @@ int ath6kl_wmi_send_probe_response_cmd(struct wmi *wmi, u8 if_idx, u32 freq,
if (!skb) if (!skb)
return -ENOMEM; return -ENOMEM;
ath6kl_dbg(ATH6KL_DBG_WMI, "send_probe_response_cmd: freq=%u dst=%pM " ath6kl_dbg(ATH6KL_DBG_WMI,
"len=%u\n", freq, dst, data_len); "send_probe_response_cmd: freq=%u dst=%pM len=%u\n",
freq, dst, data_len);
p = (struct wmi_p2p_probe_response_cmd *) skb->data; p = (struct wmi_p2p_probe_response_cmd *) skb->data;
p->freq = cpu_to_le32(freq); p->freq = cpu_to_le32(freq);
memcpy(p->destination_addr, dst, ETH_ALEN); memcpy(p->destination_addr, dst, ETH_ALEN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment