wmi.c (3fb55c79d092d085bddd4fc94f250acfc1275f3d) | wmi.c (c4cdf753ed4287467248126a4fac072fbba53b31) |
---|---|
1/* 2 * Copyright (c) 2005-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2013 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 2135 unchanged lines hidden (view full) --- 2144 struct wmi_mgmt_rx_event_v1 *ev_v1; 2145 struct wmi_mgmt_rx_event_v2 *ev_v2; 2146 struct wmi_mgmt_rx_hdr_v1 *ev_hdr; 2147 struct wmi_mgmt_rx_ext_info *ext_info; 2148 size_t pull_len; 2149 u32 msdu_len; 2150 u32 len; 2151 | 1/* 2 * Copyright (c) 2005-2011 Atheros Communications Inc. 3 * Copyright (c) 2011-2013 Qualcomm Atheros, Inc. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * --- 2135 unchanged lines hidden (view full) --- 2144 struct wmi_mgmt_rx_event_v1 *ev_v1; 2145 struct wmi_mgmt_rx_event_v2 *ev_v2; 2146 struct wmi_mgmt_rx_hdr_v1 *ev_hdr; 2147 struct wmi_mgmt_rx_ext_info *ext_info; 2148 size_t pull_len; 2149 u32 msdu_len; 2150 u32 len; 2151 |
2152 if (test_bit(ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX, ar->fw_features)) { | 2152 if (test_bit(ATH10K_FW_FEATURE_EXT_WMI_MGMT_RX, 2153 ar->running_fw->fw_file.fw_features)) { |
2153 ev_v2 = (struct wmi_mgmt_rx_event_v2 *)skb->data; 2154 ev_hdr = &ev_v2->hdr.v1; 2155 pull_len = sizeof(*ev_v2); 2156 } else { 2157 ev_v1 = (struct wmi_mgmt_rx_event_v1 *)skb->data; 2158 ev_hdr = &ev_v1->hdr; 2159 pull_len = sizeof(*ev_v1); 2160 } --- 2468 unchanged lines hidden (view full) --- 4629 if (num_mem_reqs > WMI_MAX_MEM_REQS) { 4630 ath10k_warn(ar, "requested memory chunks number (%d) exceeds the limit\n", 4631 num_mem_reqs); 4632 return; 4633 } 4634 4635 if (test_bit(WMI_SERVICE_PEER_CACHING, ar->wmi.svc_map)) { 4636 if (test_bit(ATH10K_FW_FEATURE_PEER_FLOW_CONTROL, | 2154 ev_v2 = (struct wmi_mgmt_rx_event_v2 *)skb->data; 2155 ev_hdr = &ev_v2->hdr.v1; 2156 pull_len = sizeof(*ev_v2); 2157 } else { 2158 ev_v1 = (struct wmi_mgmt_rx_event_v1 *)skb->data; 2159 ev_hdr = &ev_v1->hdr; 2160 pull_len = sizeof(*ev_v1); 2161 } --- 2468 unchanged lines hidden (view full) --- 4630 if (num_mem_reqs > WMI_MAX_MEM_REQS) { 4631 ath10k_warn(ar, "requested memory chunks number (%d) exceeds the limit\n", 4632 num_mem_reqs); 4633 return; 4634 } 4635 4636 if (test_bit(WMI_SERVICE_PEER_CACHING, ar->wmi.svc_map)) { 4637 if (test_bit(ATH10K_FW_FEATURE_PEER_FLOW_CONTROL, |
4637 ar->fw_features)) | 4638 ar->running_fw->fw_file.fw_features)) |
4638 ar->num_active_peers = TARGET_10_4_QCACHE_ACTIVE_PEERS_PFC + 4639 ar->max_num_vdevs; 4640 else 4641 ar->num_active_peers = TARGET_10_4_QCACHE_ACTIVE_PEERS + 4642 ar->max_num_vdevs; 4643 4644 ar->max_num_peers = TARGET_10_4_NUM_QCACHE_PEERS_MAX + 4645 ar->max_num_vdevs; --- 3298 unchanged lines hidden --- | 4639 ar->num_active_peers = TARGET_10_4_QCACHE_ACTIVE_PEERS_PFC + 4640 ar->max_num_vdevs; 4641 else 4642 ar->num_active_peers = TARGET_10_4_QCACHE_ACTIVE_PEERS + 4643 ar->max_num_vdevs; 4644 4645 ar->max_num_peers = TARGET_10_4_NUM_QCACHE_PEERS_MAX + 4646 ar->max_num_vdevs; --- 3298 unchanged lines hidden --- |