Lines Matching refs:if_idx
27 static int ath6kl_wmi_sync_point(struct wmi *wmi, u8 if_idx);
136 struct ath6kl_vif *ath6kl_get_vif_by_index(struct ath6kl *ar, u8 if_idx) in ath6kl_get_vif_by_index() argument
140 if (WARN_ON(if_idx > (ar->vif_max - 1))) in ath6kl_get_vif_by_index()
146 if (vif->fw_vif_idx == if_idx) { in ath6kl_get_vif_by_index()
237 u8 meta_ver, void *tx_meta_info, u8 if_idx) in ath6kl_wmi_data_hdr_add() argument
242 if (WARN_ON(skb == NULL || (if_idx > wmi->parent_dev->vif_max - 1))) in ath6kl_wmi_data_hdr_add()
266 data_hdr->info3 |= cpu_to_le16(if_idx & WMI_DATA_HDR_IF_IDX_MASK); in ath6kl_wmi_data_hdr_add()
298 int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_implicit_create_pstream() argument
380 ath6kl_wmi_create_pstream_cmd(wmi, if_idx, &cmd); in ath6kl_wmi_implicit_create_pstream()
726 static int ath6kl_wmi_simple_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_simple_cmd() argument
736 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, cmd_id, NO_SYNC_WMIFLAG); in ath6kl_wmi_simple_cmd()
802 int ath6kl_wmi_ap_set_beacon_intvl_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_ap_set_beacon_intvl_cmd() argument
815 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_ap_set_beacon_intvl_cmd()
819 int ath6kl_wmi_ap_set_dtim_cmd(struct wmi *wmi, u8 if_idx, u32 dtim_period) in ath6kl_wmi_ap_set_dtim_cmd() argument
831 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_ap_set_dtim_cmd()
1626 int ath6kl_wmi_set_rssi_filter_cmd(struct wmi *wmi, u8 if_idx, s8 rssi) in ath6kl_wmi_set_rssi_filter_cmd() argument
1639 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_RSSI_FILTER_CMDID, in ath6kl_wmi_set_rssi_filter_cmd()
1779 int ath6kl_wmi_cmd_send(struct wmi *wmi, u8 if_idx, struct sk_buff *skb, in ath6kl_wmi_cmd_send() argument
1788 (if_idx > (wmi->parent_dev->vif_max - 1)))) { in ath6kl_wmi_cmd_send()
1809 ath6kl_wmi_sync_point(wmi, if_idx); in ath6kl_wmi_cmd_send()
1816 info1 = if_idx & WMI_CMD_HDR_IF_ID_MASK; in ath6kl_wmi_cmd_send()
1822 WMI_DATA_HDR_DATA_TYPE_802_3, 0, NULL, if_idx); in ath6kl_wmi_cmd_send()
1838 ath6kl_wmi_sync_point(wmi, if_idx); in ath6kl_wmi_cmd_send()
1844 int ath6kl_wmi_connect_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_connect_cmd() argument
1898 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_CONNECT_CMDID, in ath6kl_wmi_connect_cmd()
1904 int ath6kl_wmi_reconnect_cmd(struct wmi *wmi, u8 if_idx, u8 *bssid, in ath6kl_wmi_reconnect_cmd() argument
1926 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_RECONNECT_CMDID, in ath6kl_wmi_reconnect_cmd()
1932 int ath6kl_wmi_disconnect_cmd(struct wmi *wmi, u8 if_idx) in ath6kl_wmi_disconnect_cmd() argument
1941 ret = ath6kl_wmi_simple_cmd(wmi, if_idx, WMI_DISCONNECT_CMDID); in ath6kl_wmi_disconnect_cmd()
1950 static int ath6kl_wmi_startscan_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_startscan_cmd() argument
1982 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_START_SCAN_CMDID, in ath6kl_wmi_startscan_cmd()
1993 int ath6kl_wmi_beginscan_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_beginscan_cmd() argument
2010 return ath6kl_wmi_startscan_cmd(wmi, if_idx, in ath6kl_wmi_beginscan_cmd()
2061 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_BEGIN_SCAN_CMDID, in ath6kl_wmi_beginscan_cmd()
2067 int ath6kl_wmi_enable_sched_scan_cmd(struct wmi *wmi, u8 if_idx, bool enable) in ath6kl_wmi_enable_sched_scan_cmd() argument
2078 enable ? "enabling" : "disabling", if_idx); in ath6kl_wmi_enable_sched_scan_cmd()
2082 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_enable_sched_scan_cmd()
2088 int ath6kl_wmi_scanparams_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_scanparams_cmd() argument
2116 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_SCAN_PARAMS_CMDID, in ath6kl_wmi_scanparams_cmd()
2121 int ath6kl_wmi_bssfilter_cmd(struct wmi *wmi, u8 if_idx, u8 filter, u32 ie_mask) in ath6kl_wmi_bssfilter_cmd() argument
2138 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_BSS_FILTER_CMDID, in ath6kl_wmi_bssfilter_cmd()
2143 int ath6kl_wmi_probedssid_cmd(struct wmi *wmi, u8 if_idx, u8 index, u8 flag, in ath6kl_wmi_probedssid_cmd() argument
2175 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_PROBED_SSID_CMDID, in ath6kl_wmi_probedssid_cmd()
2180 int ath6kl_wmi_listeninterval_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_listeninterval_cmd() argument
2196 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_LISTEN_INT_CMDID, in ath6kl_wmi_listeninterval_cmd()
2201 int ath6kl_wmi_bmisstime_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_bmisstime_cmd() argument
2216 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_BMISS_TIME_CMDID, in ath6kl_wmi_bmisstime_cmd()
2221 int ath6kl_wmi_powermode_cmd(struct wmi *wmi, u8 if_idx, u8 pwr_mode) in ath6kl_wmi_powermode_cmd() argument
2235 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_POWER_MODE_CMDID, in ath6kl_wmi_powermode_cmd()
2240 int ath6kl_wmi_pmparams_cmd(struct wmi *wmi, u8 if_idx, u16 idle_period, in ath6kl_wmi_pmparams_cmd() argument
2261 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_POWER_PARAMS_CMDID, in ath6kl_wmi_pmparams_cmd()
2266 int ath6kl_wmi_disctimeout_cmd(struct wmi *wmi, u8 if_idx, u8 timeout) in ath6kl_wmi_disctimeout_cmd() argument
2279 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_DISC_TIMEOUT_CMDID, in ath6kl_wmi_disctimeout_cmd()
2288 int ath6kl_wmi_addkey_cmd(struct wmi *wmi, u8 if_idx, u8 key_index, in ath6kl_wmi_addkey_cmd() argument
2330 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_ADD_CIPHER_KEY_CMDID, in ath6kl_wmi_addkey_cmd()
2336 int ath6kl_wmi_add_krk_cmd(struct wmi *wmi, u8 if_idx, const u8 *krk) in ath6kl_wmi_add_krk_cmd() argument
2349 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_ADD_KRK_CMDID, in ath6kl_wmi_add_krk_cmd()
2355 int ath6kl_wmi_deletekey_cmd(struct wmi *wmi, u8 if_idx, u8 key_index) in ath6kl_wmi_deletekey_cmd() argument
2371 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_DELETE_CIPHER_KEY_CMDID, in ath6kl_wmi_deletekey_cmd()
2377 int ath6kl_wmi_setpmkid_cmd(struct wmi *wmi, u8 if_idx, const u8 *bssid, in ath6kl_wmi_setpmkid_cmd() argument
2404 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_PMKID_CMDID, in ath6kl_wmi_setpmkid_cmd()
2411 enum htc_endpoint_id ep_id, u8 if_idx) in ath6kl_wmi_data_sync_send() argument
2425 data_hdr->info3 = cpu_to_le16(if_idx & WMI_DATA_HDR_IF_IDX_MASK); in ath6kl_wmi_data_sync_send()
2432 static int ath6kl_wmi_sync_point(struct wmi *wmi, u8 if_idx) in ath6kl_wmi_sync_point() argument
2486 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SYNCHRONIZE_CMDID, in ath6kl_wmi_sync_point()
2503 ep_id, if_idx); in ath6kl_wmi_sync_point()
2524 int ath6kl_wmi_create_pstream_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_create_pstream_cmd() argument
2612 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_CREATE_PSTREAM_CMDID, in ath6kl_wmi_create_pstream_cmd()
2617 int ath6kl_wmi_delete_pstream_cmd(struct wmi *wmi, u8 if_idx, u8 traffic_class, in ath6kl_wmi_delete_pstream_cmd() argument
2659 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_DELETE_PSTREAM_CMDID, in ath6kl_wmi_delete_pstream_cmd()
2680 int ath6kl_wmi_set_ip_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_ip_cmd() argument
2700 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_IP_CMDID, in ath6kl_wmi_set_ip_cmd()
2753 static int ath6kl_set_bitrate_mask64(struct wmi *wmi, u8 if_idx, in ath6kl_set_bitrate_mask64() argument
2799 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_set_bitrate_mask64()
2805 static int ath6kl_set_bitrate_mask32(struct wmi *wmi, u8 if_idx, in ath6kl_set_bitrate_mask32() argument
2849 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_set_bitrate_mask32()
2855 int ath6kl_wmi_set_bitrate_mask(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_bitrate_mask() argument
2862 return ath6kl_set_bitrate_mask64(wmi, if_idx, mask); in ath6kl_wmi_set_bitrate_mask()
2864 return ath6kl_set_bitrate_mask32(wmi, if_idx, mask); in ath6kl_wmi_set_bitrate_mask()
2867 int ath6kl_wmi_set_host_sleep_mode_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_host_sleep_mode_cmd() argument
2893 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_set_host_sleep_mode_cmd()
2911 int ath6kl_wmi_set_wow_mode_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_wow_mode_cmd() argument
2934 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_WOW_MODE_CMDID, in ath6kl_wmi_set_wow_mode_cmd()
2939 int ath6kl_wmi_add_wow_pattern_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_add_wow_pattern_cmd() argument
2970 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_ADD_WOW_PATTERN_CMDID, in ath6kl_wmi_add_wow_pattern_cmd()
2976 int ath6kl_wmi_del_wow_pattern_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_del_wow_pattern_cmd() argument
2991 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_DEL_WOW_PATTERN_CMDID, in ath6kl_wmi_del_wow_pattern_cmd()
3051 int ath6kl_wmi_get_stats_cmd(struct wmi *wmi, u8 if_idx) in ath6kl_wmi_get_stats_cmd() argument
3053 return ath6kl_wmi_simple_cmd(wmi, if_idx, WMI_GET_STATISTICS_CMDID); in ath6kl_wmi_get_stats_cmd()
3056 int ath6kl_wmi_set_tx_pwr_cmd(struct wmi *wmi, u8 if_idx, u8 dbM) in ath6kl_wmi_set_tx_pwr_cmd() argument
3069 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_TX_PWR_CMDID, in ath6kl_wmi_set_tx_pwr_cmd()
3075 int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi, u8 if_idx) in ath6kl_wmi_get_tx_pwr_cmd() argument
3077 return ath6kl_wmi_simple_cmd(wmi, if_idx, WMI_GET_TX_PWR_CMDID); in ath6kl_wmi_get_tx_pwr_cmd()
3085 int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 if_idx, u8 status, in ath6kl_wmi_set_lpreamble_cmd() argument
3100 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_LPREAMBLE_CMDID, in ath6kl_wmi_set_lpreamble_cmd()
3123 int ath6kl_wmi_set_wmm_txop(struct wmi *wmi, u8 if_idx, enum wmi_txop_cfg cfg) in ath6kl_wmi_set_wmm_txop() argument
3139 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_WMM_TXOP_CMDID, in ath6kl_wmi_set_wmm_txop()
3144 int ath6kl_wmi_set_keepalive_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_keepalive_cmd() argument
3158 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_KEEPALIVE_CMDID, in ath6kl_wmi_set_keepalive_cmd()
3167 int ath6kl_wmi_set_htcap_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_htcap_cmd() argument
3200 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_HT_CAP_CMDID, in ath6kl_wmi_set_htcap_cmd()
3220 int ath6kl_wmi_mcast_filter_cmd(struct wmi *wmi, u8 if_idx, bool mc_all_on) in ath6kl_wmi_mcast_filter_cmd() argument
3233 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_MCAST_FILTER_CMDID, in ath6kl_wmi_mcast_filter_cmd()
3238 int ath6kl_wmi_add_del_mcast_filter_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_add_del_mcast_filter_cmd() argument
3258 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_add_del_mcast_filter_cmd()
3266 int ath6kl_wmi_sta_bmiss_enhance_cmd(struct wmi *wmi, u8 if_idx, bool enhance) in ath6kl_wmi_sta_bmiss_enhance_cmd() argument
3279 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_sta_bmiss_enhance_cmd()
3375 int ath6kl_wmi_ap_profile_commit(struct wmi *wmip, u8 if_idx, in ath6kl_wmi_ap_profile_commit() argument
3389 res = ath6kl_wmi_cmd_send(wmip, if_idx, skb, WMI_AP_CONFIG_COMMIT_CMDID, in ath6kl_wmi_ap_profile_commit()
3398 int ath6kl_wmi_ap_set_mlme(struct wmi *wmip, u8 if_idx, u8 cmd, const u8 *mac, in ath6kl_wmi_ap_set_mlme() argument
3416 return ath6kl_wmi_cmd_send(wmip, if_idx, skb, WMI_AP_SET_MLME_CMDID, in ath6kl_wmi_ap_set_mlme()
3420 int ath6kl_wmi_ap_hidden_ssid(struct wmi *wmi, u8 if_idx, bool enable) in ath6kl_wmi_ap_hidden_ssid() argument
3432 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_AP_HIDDEN_SSID_CMDID, in ath6kl_wmi_ap_hidden_ssid()
3437 int ath6kl_wmi_ap_set_apsd(struct wmi *wmi, u8 if_idx, u8 enable) in ath6kl_wmi_ap_set_apsd() argument
3449 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_AP_SET_APSD_CMDID, in ath6kl_wmi_ap_set_apsd()
3453 int ath6kl_wmi_set_apsd_bfrd_traf(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_apsd_bfrd_traf() argument
3468 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_set_apsd_bfrd_traf()
3496 int ath6kl_wmi_set_pvb_cmd(struct wmi *wmi, u8 if_idx, u16 aid, in ath6kl_wmi_set_pvb_cmd() argument
3512 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_AP_SET_PVB_CMDID, in ath6kl_wmi_set_pvb_cmd()
3518 int ath6kl_wmi_set_rx_frame_format_cmd(struct wmi *wmi, u8 if_idx, in ath6kl_wmi_set_rx_frame_format_cmd() argument
3536 ret = ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_RX_FRAME_FORMAT_CMDID, in ath6kl_wmi_set_rx_frame_format_cmd()
3542 int ath6kl_wmi_set_appie_cmd(struct wmi *wmi, u8 if_idx, u8 mgmt_frm_type, in ath6kl_wmi_set_appie_cmd() argument
3562 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_APPIE_CMDID, in ath6kl_wmi_set_appie_cmd()
3566 int ath6kl_wmi_set_ie_cmd(struct wmi *wmi, u8 if_idx, u8 ie_id, u8 ie_field, in ath6kl_wmi_set_ie_cmd() argument
3585 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SET_IE_CMDID, in ath6kl_wmi_set_ie_cmd()
3607 int ath6kl_wmi_remain_on_chnl_cmd(struct wmi *wmi, u8 if_idx, u32 freq, u32 dur) in ath6kl_wmi_remain_on_chnl_cmd() argument
3621 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_REMAIN_ON_CHNL_CMDID, in ath6kl_wmi_remain_on_chnl_cmd()
3629 static int ath6kl_wmi_send_action_cmd(struct wmi *wmi, u8 if_idx, u32 id, in ath6kl_wmi_send_action_cmd() argument
3663 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SEND_ACTION_CMDID, in ath6kl_wmi_send_action_cmd()
3667 static int __ath6kl_wmi_send_mgmt_cmd(struct wmi *wmi, u8 if_idx, u32 id, in __ath6kl_wmi_send_mgmt_cmd() argument
3702 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_SEND_MGMT_CMDID, in __ath6kl_wmi_send_mgmt_cmd()
3706 int ath6kl_wmi_send_mgmt_cmd(struct wmi *wmi, u8 if_idx, u32 id, u32 freq, in ath6kl_wmi_send_mgmt_cmd() argument
3721 status = __ath6kl_wmi_send_mgmt_cmd(ar->wmi, if_idx, id, freq, in ath6kl_wmi_send_mgmt_cmd()
3725 status = ath6kl_wmi_send_action_cmd(ar->wmi, if_idx, id, freq, in ath6kl_wmi_send_mgmt_cmd()
3732 int ath6kl_wmi_send_probe_response_cmd(struct wmi *wmi, u8 if_idx, u32 freq, in ath6kl_wmi_send_probe_response_cmd() argument
3755 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, in ath6kl_wmi_send_probe_response_cmd()
3760 int ath6kl_wmi_probe_report_req_cmd(struct wmi *wmi, u8 if_idx, bool enable) in ath6kl_wmi_probe_report_req_cmd() argument
3773 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_PROBE_REQ_REPORT_CMDID, in ath6kl_wmi_probe_report_req_cmd()
3777 int ath6kl_wmi_info_req_cmd(struct wmi *wmi, u8 if_idx, u32 info_req_flags) in ath6kl_wmi_info_req_cmd() argument
3790 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_GET_P2P_INFO_CMDID, in ath6kl_wmi_info_req_cmd()
3794 int ath6kl_wmi_cancel_remain_on_chnl_cmd(struct wmi *wmi, u8 if_idx) in ath6kl_wmi_cancel_remain_on_chnl_cmd() argument
3797 return ath6kl_wmi_simple_cmd(wmi, if_idx, in ath6kl_wmi_cancel_remain_on_chnl_cmd()
3801 int ath6kl_wmi_set_inact_period(struct wmi *wmi, u8 if_idx, int inact_timeout) in ath6kl_wmi_set_inact_period() argument
3814 return ath6kl_wmi_cmd_send(wmi, if_idx, skb, WMI_AP_CONN_INACT_CMDID, in ath6kl_wmi_set_inact_period()
3876 static int ath6kl_wmi_proc_events_vif(struct wmi *wmi, u16 if_idx, u16 cmd_id, in ath6kl_wmi_proc_events_vif() argument
3881 vif = ath6kl_get_vif_by_index(wmi->parent_dev, if_idx); in ath6kl_wmi_proc_events_vif()
3885 if_idx); in ath6kl_wmi_proc_events_vif()
3965 u8 if_idx; in ath6kl_wmi_proc_events() local
3970 if_idx = le16_to_cpu(cmd->info1) & WMI_CMD_HDR_IF_ID_MASK; in ath6kl_wmi_proc_events()
4099 ret = ath6kl_wmi_proc_events_vif(wmi, if_idx, id, datap, len); in ath6kl_wmi_proc_events()