Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * This file is provided under a dual BSD/GPLv2 license. When using or |
| 4 | * redistributing this file, you may do so under either license. |
| 5 | * |
| 6 | * GPL LICENSE SUMMARY |
| 7 | * |
Wey-Yi Guy | 4e31826 | 2011-12-27 11:21:32 -0800 | [diff] [blame] | 8 | * Copyright(c) 2008 - 2012 Intel Corporation. All rights reserved. |
Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 9 | * |
| 10 | * This program is free software; you can redistribute it and/or modify |
| 11 | * it under the terms of version 2 of the GNU General Public License as |
| 12 | * published by the Free Software Foundation. |
| 13 | * |
| 14 | * This program is distributed in the hope that it will be useful, but |
| 15 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, |
| 22 | * USA |
| 23 | * |
| 24 | * The full GNU General Public License is included in this distribution |
| 25 | * in the file called LICENSE.GPL. |
| 26 | * |
| 27 | * Contact Information: |
Winkler, Tomas | 759ef89 | 2008-12-09 11:28:58 -0800 | [diff] [blame] | 28 | * Intel Linux Wireless <ilw@linux.intel.com> |
Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 29 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 |
| 30 | * |
| 31 | * BSD LICENSE |
| 32 | * |
Wey-Yi Guy | 4e31826 | 2011-12-27 11:21:32 -0800 | [diff] [blame] | 33 | * Copyright(c) 2005 - 2012 Intel Corporation. All rights reserved. |
Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 34 | * All rights reserved. |
| 35 | * |
| 36 | * Redistribution and use in source and binary forms, with or without |
| 37 | * modification, are permitted provided that the following conditions |
| 38 | * are met: |
| 39 | * |
| 40 | * * Redistributions of source code must retain the above copyright |
| 41 | * notice, this list of conditions and the following disclaimer. |
| 42 | * * Redistributions in binary form must reproduce the above copyright |
| 43 | * notice, this list of conditions and the following disclaimer in |
| 44 | * the documentation and/or other materials provided with the |
| 45 | * distribution. |
| 46 | * * Neither the name Intel Corporation nor the names of its |
| 47 | * contributors may be used to endorse or promote products derived |
| 48 | * from this software without specific prior written permission. |
| 49 | * |
| 50 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 51 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 52 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 53 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 54 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 55 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 56 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 57 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 58 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 59 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 60 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 61 | *****************************************************************************/ |
| 62 | |
| 63 | #ifndef __iwl_core_h__ |
| 64 | #define __iwl_core_h__ |
| 65 | |
Johannes Berg | 266af4c7 | 2011-03-10 20:13:26 -0800 | [diff] [blame] | 66 | #include "iwl-dev.h" |
Emmanuel Grumbach | 6a686c6 | 2011-10-10 07:27:17 -0700 | [diff] [blame] | 67 | #include "iwl-io.h" |
Johannes Berg | 266af4c7 | 2011-03-10 20:13:26 -0800 | [diff] [blame] | 68 | |
Tomas Winkler | 857485c | 2008-03-21 13:53:44 -0700 | [diff] [blame] | 69 | /************************ |
| 70 | * forward declarations * |
| 71 | ************************/ |
| 72 | struct iwl_host_cmd; |
| 73 | struct iwl_cmd; |
| 74 | |
Wey-Yi Guy | a0ee74c | 2010-05-06 08:54:10 -0700 | [diff] [blame] | 75 | #define TIME_UNIT 1024 |
| 76 | |
Assaf Krauss | 6bc913b | 2008-03-11 16:17:18 -0700 | [diff] [blame] | 77 | struct iwl_lib_ops { |
Tomas Winkler | a96a27f | 2008-10-23 23:48:56 -0700 | [diff] [blame] | 78 | /* set hw dependent parameters */ |
Emmanuel Grumbach | 6d4dec7 | 2012-02-17 10:52:03 -0800 | [diff] [blame] | 79 | void (*set_hw_params)(struct iwl_priv *priv); |
Emmanuel Grumbach | 8d30119 | 2011-07-03 15:45:34 +0300 | [diff] [blame] | 80 | /* setup BT Rx handler */ |
| 81 | void (*bt_rx_handler_setup)(struct iwl_priv *priv); |
Emmanuel Grumbach | 6bd4dba | 2011-07-03 15:45:34 +0300 | [diff] [blame] | 82 | /* setup BT related deferred work */ |
| 83 | void (*bt_setup_deferred_work)(struct iwl_priv *priv); |
Emmanuel Grumbach | 4e39317 | 2008-06-12 09:46:53 +0800 | [diff] [blame] | 84 | /* cancel deferred work */ |
| 85 | void (*cancel_deferred_work)(struct iwl_priv *priv); |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 86 | int (*set_channel_switch)(struct iwl_priv *priv, |
| 87 | struct ieee80211_channel_switch *ch_switch); |
Fry, Donald H | e4c598b | 2011-07-08 08:46:18 -0700 | [diff] [blame] | 88 | /* device specific configuration */ |
| 89 | void (*nic_config)(struct iwl_priv *priv); |
Wey-Yi Guy | 62161ae | 2009-05-21 13:44:23 -0700 | [diff] [blame] | 90 | |
Assaf Krauss | 6bc913b | 2008-03-11 16:17:18 -0700 | [diff] [blame] | 91 | /* eeprom operations (as defined in iwl-eeprom.h) */ |
| 92 | struct iwl_eeprom_ops eeprom_ops; |
Wey-Yi Guy | 62161ae | 2009-05-21 13:44:23 -0700 | [diff] [blame] | 93 | |
| 94 | /* temperature */ |
Wey-Yi Guy | 909fc3c | 2011-07-08 08:46:20 -0700 | [diff] [blame] | 95 | void (*temperature)(struct iwl_priv *priv); |
Assaf Krauss | 6bc913b | 2008-03-11 16:17:18 -0700 | [diff] [blame] | 96 | }; |
| 97 | |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 98 | /* |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 99 | * @advanced_bt_coexist: support advanced bt coexist |
| 100 | * @bt_init_traffic_load: specify initial bt traffic load |
| 101 | * @bt_prio_boost: default bt priority boost value |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 102 | * @agg_time_limit: maximum number of uSec in aggregation |
Wey-Yi Guy | e366176 | 2010-11-23 10:58:54 -0800 | [diff] [blame] | 103 | * @bt_sco_disable: uCode should not response to BT in SCO/ESCO mode |
Wey-Yi Guy | 15b3f3b | 2011-06-03 07:54:13 -0700 | [diff] [blame] | 104 | */ |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 105 | struct iwl_bt_params { |
Johannes Berg | 670245e | 2010-08-23 07:56:55 -0700 | [diff] [blame] | 106 | bool advanced_bt_coexist; |
Wey-Yi Guy | a4b96cc | 2010-08-23 07:57:08 -0700 | [diff] [blame] | 107 | u8 bt_init_traffic_load; |
Wey-Yi Guy | 5d297d5 | 2010-08-23 07:57:09 -0700 | [diff] [blame] | 108 | u8 bt_prio_boost; |
Wey-Yi Guy | 7469701 | 2010-07-28 09:18:54 -0700 | [diff] [blame] | 109 | u16 agg_time_limit; |
Wey-Yi Guy | e366176 | 2010-11-23 10:58:54 -0800 | [diff] [blame] | 110 | bool bt_sco_disable; |
Wey-Yi Guy | 6013270 | 2011-02-18 17:23:54 -0800 | [diff] [blame] | 111 | bool bt_session_2; |
Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 112 | }; |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 113 | /* |
| 114 | * @use_rts_for_aggregation: use rts/cts protection for HT traffic |
Wey-Yi Guy | 15b3f3b | 2011-06-03 07:54:13 -0700 | [diff] [blame] | 115 | */ |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 116 | struct iwl_ht_params { |
| 117 | const bool ht_greenfield_support; /* if used set to true */ |
| 118 | bool use_rts_for_aggregation; |
Wey-Yi Guy | 15b3f3b | 2011-06-03 07:54:13 -0700 | [diff] [blame] | 119 | enum ieee80211_smps_mode smps_mode; |
Wey-Yi Guy | 7cb1b08 | 2010-10-06 08:10:00 -0700 | [diff] [blame] | 120 | }; |
| 121 | |
Assaf Krauss | 1d0a082 | 2008-03-14 10:38:48 -0700 | [diff] [blame] | 122 | /*************************** |
| 123 | * L i b * |
| 124 | ***************************/ |
| 125 | |
Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 126 | void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, |
| 127 | int hw_decrypt); |
| 128 | int iwl_check_rxon_cmd(struct iwl_priv *priv, struct iwl_rxon_context *ctx); |
| 129 | int iwl_full_rxon_required(struct iwl_priv *priv, struct iwl_rxon_context *ctx); |
Wey-Yi Guy | dd63b84 | 2012-02-08 15:57:39 -0800 | [diff] [blame] | 130 | void iwl_set_rxon_channel(struct iwl_priv *priv, struct ieee80211_channel *ch, |
Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 131 | struct iwl_rxon_context *ctx); |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 132 | void iwl_set_flags_for_band(struct iwl_priv *priv, |
Johannes Berg | 246ed35 | 2010-08-23 10:46:32 +0200 | [diff] [blame] | 133 | struct iwl_rxon_context *ctx, |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 134 | enum ieee80211_band band, |
| 135 | struct ieee80211_vif *vif); |
Abhijeet Kolekar | 1402364 | 2010-06-02 21:15:10 -0700 | [diff] [blame] | 136 | u8 iwl_get_single_channel_number(struct iwl_priv *priv, |
| 137 | enum ieee80211_band band); |
Johannes Berg | fad95bf | 2009-09-11 10:38:15 -0700 | [diff] [blame] | 138 | void iwl_set_rxon_ht(struct iwl_priv *priv, struct iwl_ht_config *ht_conf); |
Johannes Berg | 7e6a588 | 2010-08-23 10:46:46 +0200 | [diff] [blame] | 139 | bool iwl_is_ht40_tx_allowed(struct iwl_priv *priv, |
| 140 | struct iwl_rxon_context *ctx, |
| 141 | struct ieee80211_sta_ht_cap *ht_cap); |
Johannes Berg | 1dda6d2 | 2010-04-29 04:43:06 -0700 | [diff] [blame] | 142 | void iwl_connection_init_rx_config(struct iwl_priv *priv, |
Johannes Berg | d0fe478 | 2010-08-23 10:46:58 +0200 | [diff] [blame] | 143 | struct iwl_rxon_context *ctx); |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 144 | void iwl_set_rate(struct iwl_priv *priv); |
Wey-Yi Guy | 317d09f | 2011-10-10 07:26:49 -0700 | [diff] [blame] | 145 | int iwl_cmd_echo_test(struct iwl_priv *priv); |
Wey-Yi Guy | 20594eb | 2009-08-07 15:41:39 -0700 | [diff] [blame] | 146 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
| 147 | int iwl_alloc_traffic_mem(struct iwl_priv *priv); |
| 148 | void iwl_free_traffic_mem(struct iwl_priv *priv); |
Wey-Yi Guy | 20594eb | 2009-08-07 15:41:39 -0700 | [diff] [blame] | 149 | void iwl_dbg_log_tx_data_frame(struct iwl_priv *priv, |
| 150 | u16 length, struct ieee80211_hdr *header); |
| 151 | void iwl_dbg_log_rx_data_frame(struct iwl_priv *priv, |
| 152 | u16 length, struct ieee80211_hdr *header); |
Wey-Yi Guy | 22fdf3c | 2009-08-07 15:41:40 -0700 | [diff] [blame] | 153 | const char *get_mgmt_string(int cmd); |
| 154 | const char *get_ctrl_string(int cmd); |
Wey-Yi Guy | 7163b8a | 2009-11-20 12:04:56 -0800 | [diff] [blame] | 155 | void iwl_clear_traffic_stats(struct iwl_priv *priv); |
Reinette Chatre | 450ccb3 | 2009-08-07 15:41:49 -0700 | [diff] [blame] | 156 | void iwl_update_stats(struct iwl_priv *priv, bool is_tx, __le16 fc, |
| 157 | u16 len); |
Emmanuel Grumbach | 4d660ce | 2012-02-15 12:48:04 +0200 | [diff] [blame] | 158 | void iwl_reset_traffic_log(struct iwl_priv *priv); |
| 159 | |
Wey-Yi Guy | 20594eb | 2009-08-07 15:41:39 -0700 | [diff] [blame] | 160 | #else |
| 161 | static inline int iwl_alloc_traffic_mem(struct iwl_priv *priv) |
| 162 | { |
| 163 | return 0; |
| 164 | } |
| 165 | static inline void iwl_free_traffic_mem(struct iwl_priv *priv) |
| 166 | { |
| 167 | } |
| 168 | static inline void iwl_reset_traffic_log(struct iwl_priv *priv) |
| 169 | { |
| 170 | } |
| 171 | static inline void iwl_dbg_log_tx_data_frame(struct iwl_priv *priv, |
| 172 | u16 length, struct ieee80211_hdr *header) |
| 173 | { |
| 174 | } |
| 175 | static inline void iwl_dbg_log_rx_data_frame(struct iwl_priv *priv, |
| 176 | u16 length, struct ieee80211_hdr *header) |
| 177 | { |
| 178 | } |
Reinette Chatre | 450ccb3 | 2009-08-07 15:41:49 -0700 | [diff] [blame] | 179 | static inline void iwl_update_stats(struct iwl_priv *priv, bool is_tx, |
| 180 | __le16 fc, u16 len) |
| 181 | { |
Reinette Chatre | 450ccb3 | 2009-08-07 15:41:49 -0700 | [diff] [blame] | 182 | } |
Wey-Yi Guy | 20594eb | 2009-08-07 15:41:39 -0700 | [diff] [blame] | 183 | #endif |
Abhijeet Kolekar | 030f05e | 2009-02-18 15:54:28 -0800 | [diff] [blame] | 184 | |
| 185 | /***************************************************** |
Tomas Winkler | a55360e | 2008-05-05 10:22:28 +0800 | [diff] [blame] | 186 | * RX |
| 187 | ******************************************************/ |
Wey-Yi Guy | 79d0732 | 2010-05-06 08:54:11 -0700 | [diff] [blame] | 188 | void iwl_chswitch_done(struct iwl_priv *priv, bool is_success); |
Tomas Winkler | a55360e | 2008-05-05 10:22:28 +0800 | [diff] [blame] | 189 | |
Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 190 | void iwl_setup_watchdog(struct iwl_priv *priv); |
Ron Rindjunsky | 1053d35 | 2008-05-05 10:22:43 +0800 | [diff] [blame] | 191 | /***************************************************** |
Tomas Winkler | 630fe9b | 2008-06-12 09:47:08 +0800 | [diff] [blame] | 192 | * TX power |
| 193 | ****************************************************/ |
| 194 | int iwl_set_tx_power(struct iwl_priv *priv, s8 tx_power, bool force); |
| 195 | |
Tomas Winkler | 2a421b9 | 2008-06-12 09:47:10 +0800 | [diff] [blame] | 196 | /******************************************************************************* |
| 197 | * Scanning |
| 198 | ******************************************************************************/ |
Tomas Winkler | f53696d | 2008-06-12 09:47:12 +0800 | [diff] [blame] | 199 | void iwl_init_scan_params(struct iwl_priv *priv); |
Tomas Winkler | 2a421b9 | 2008-06-12 09:47:10 +0800 | [diff] [blame] | 200 | int iwl_scan_cancel(struct iwl_priv *priv); |
Johannes Berg | 98efb4a | 2011-09-22 15:14:57 -0700 | [diff] [blame] | 201 | void iwl_scan_cancel_timeout(struct iwl_priv *priv, unsigned long ms); |
Stanislaw Gruszka | e7e16b9 | 2010-09-13 14:46:41 +0200 | [diff] [blame] | 202 | void iwl_force_scan_end(struct iwl_priv *priv); |
Johannes Berg | 88be026 | 2010-04-07 00:21:36 -0700 | [diff] [blame] | 203 | void iwl_internal_short_hw_scan(struct iwl_priv *priv); |
Wey-Yi Guy | c04f9f2 | 2010-06-21 16:52:55 -0700 | [diff] [blame] | 204 | int iwl_force_reset(struct iwl_priv *priv, int mode, bool external); |
Johannes Berg | 1ecf9fc | 2009-04-20 14:36:56 -0700 | [diff] [blame] | 205 | u16 iwl_fill_probe_req(struct iwl_priv *priv, struct ieee80211_mgmt *frame, |
Johannes Berg | 3a0b9aa | 2010-05-12 03:33:12 -0700 | [diff] [blame] | 206 | const u8 *ta, const u8 *ie, int ie_len, int left); |
Tomas Winkler | 2a421b9 | 2008-06-12 09:47:10 +0800 | [diff] [blame] | 207 | void iwl_setup_rx_scan_handlers(struct iwl_priv *priv); |
| 208 | void iwl_setup_scan_deferred_work(struct iwl_priv *priv); |
Stanislaw Gruszka | e7e16b9 | 2010-09-13 14:46:41 +0200 | [diff] [blame] | 209 | void iwl_cancel_scan_deferred_work(struct iwl_priv *priv); |
Johannes Berg | 266af4c7 | 2011-03-10 20:13:26 -0800 | [diff] [blame] | 210 | int __must_check iwl_scan_initiate(struct iwl_priv *priv, |
| 211 | struct ieee80211_vif *vif, |
| 212 | enum iwl_scan_type scan_type, |
| 213 | enum ieee80211_band band); |
Tomas Winkler | 2a421b9 | 2008-06-12 09:47:10 +0800 | [diff] [blame] | 214 | |
Samuel Ortiz | 77fecfb8 | 2009-01-23 13:45:12 -0800 | [diff] [blame] | 215 | /* For faster active scanning, scan will move to the next channel if fewer than |
| 216 | * PLCP_QUIET_THRESH packets are heard on this channel within |
| 217 | * ACTIVE_QUIET_TIME after sending probe request. This shortens the dwell |
| 218 | * time if it's a quiet channel (nothing responded to our probe, and there's |
| 219 | * no other traffic). |
| 220 | * Disable "quiet" feature by setting PLCP_QUIET_THRESH to 0. */ |
Harvey Harrison | c1b4aa3 | 2009-01-29 13:26:44 -0800 | [diff] [blame] | 221 | #define IWL_ACTIVE_QUIET_TIME cpu_to_le16(10) /* msec */ |
| 222 | #define IWL_PLCP_QUIET_THRESH cpu_to_le16(1) /* packets */ |
Samuel Ortiz | 77fecfb8 | 2009-01-23 13:45:12 -0800 | [diff] [blame] | 223 | |
Johannes Berg | b6e4c55 | 2010-04-06 04:12:42 -0700 | [diff] [blame] | 224 | #define IWL_SCAN_CHECK_WATCHDOG (HZ * 7) |
Samuel Ortiz | 77fecfb8 | 2009-01-23 13:45:12 -0800 | [diff] [blame] | 225 | |
Johannes Berg | 61f0439 | 2012-03-05 11:24:46 -0800 | [diff] [blame] | 226 | /* traffic log definitions */ |
| 227 | #define IWL_TRAFFIC_ENTRIES (256) |
| 228 | #define IWL_TRAFFIC_ENTRY_SIZE (64) |
| 229 | |
Tomas Winkler | 630fe9b | 2008-06-12 09:47:08 +0800 | [diff] [blame] | 230 | /***************************************************** |
Tomas Winkler | 857485c | 2008-03-21 13:53:44 -0700 | [diff] [blame] | 231 | * S e n d i n g H o s t C o m m a n d s * |
| 232 | *****************************************************/ |
| 233 | |
Stanislaw Gruszka | 22de94d | 2010-12-03 15:41:48 +0100 | [diff] [blame] | 234 | void iwl_bg_watchdog(unsigned long data); |
Wey-Yi Guy | a0ee74c | 2010-05-06 08:54:10 -0700 | [diff] [blame] | 235 | u32 iwl_usecs_to_beacons(struct iwl_priv *priv, u32 usec, u32 beacon_interval); |
| 236 | __le32 iwl_add_beacon_time(struct iwl_priv *priv, u32 base, |
| 237 | u32 addon, u32 beacon_interval); |
Wey-Yi Guy | b74e31a | 2010-03-01 17:23:50 -0800 | [diff] [blame] | 238 | |
Emmanuel Grumbach | c1c8140 | 2011-07-11 11:18:48 +0300 | [diff] [blame] | 239 | |
Winkler, Tomas | 0ad91a3 | 2008-12-02 12:14:00 -0800 | [diff] [blame] | 240 | /***************************************************** |
Samuel Ortiz | 534166d | 2009-01-23 13:45:16 -0800 | [diff] [blame] | 241 | * GEOS |
| 242 | ******************************************************/ |
Wey-Yi Guy | b39488a | 2011-08-25 23:10:33 -0700 | [diff] [blame] | 243 | int iwl_init_geos(struct iwl_priv *priv); |
| 244 | void iwl_free_geos(struct iwl_priv *priv); |
Tomas Winkler | 76eff18 | 2008-10-14 12:32:45 -0700 | [diff] [blame] | 245 | |
Johannes Berg | 65b52bd | 2010-04-13 01:04:31 -0700 | [diff] [blame] | 246 | extern void iwl_send_bt_config(struct iwl_priv *priv); |
Wey-Yi Guy | ef8d552 | 2009-11-13 11:56:28 -0800 | [diff] [blame] | 247 | extern int iwl_send_statistics_request(struct iwl_priv *priv, |
| 248 | u8 flags, bool clear); |
Tomas Winkler | 7e8c519 | 2008-04-15 16:01:43 -0700 | [diff] [blame] | 249 | |
Johannes Berg | 47313e3 | 2010-08-23 10:46:55 +0200 | [diff] [blame] | 250 | int iwl_send_rxon_timing(struct iwl_priv *priv, struct iwl_rxon_context *ctx); |
Wey-Yi Guy | 805a3b8 | 2011-06-03 07:54:16 -0700 | [diff] [blame] | 251 | |
Ron Rindjunsky | 3c57601 | 2008-05-29 16:35:19 +0800 | [diff] [blame] | 252 | static inline const struct ieee80211_supported_band *iwl_get_hw_mode( |
| 253 | struct iwl_priv *priv, enum ieee80211_band band) |
| 254 | { |
| 255 | return priv->hw->wiphy->bands[band]; |
| 256 | } |
Johannes Berg | 670245e | 2010-08-23 07:56:55 -0700 | [diff] [blame] | 257 | |
Stanislaw Gruszka | 88e58fc | 2011-01-28 16:47:47 +0100 | [diff] [blame] | 258 | static inline bool iwl_advanced_bt_coexist(struct iwl_priv *priv) |
| 259 | { |
Don Fry | 3862241 | 2011-12-16 07:07:36 -0800 | [diff] [blame] | 260 | return cfg(priv)->bt_params && |
| 261 | cfg(priv)->bt_params->advanced_bt_coexist; |
Stanislaw Gruszka | 88e58fc | 2011-01-28 16:47:47 +0100 | [diff] [blame] | 262 | } |
| 263 | |
Wey-Yi Guy | bee008b | 2010-08-23 07:57:04 -0700 | [diff] [blame] | 264 | extern bool bt_siso_mode; |
Johannes Berg | 670245e | 2010-08-23 07:56:55 -0700 | [diff] [blame] | 265 | |
Tomas Winkler | 82b9a12 | 2008-03-04 18:09:30 -0800 | [diff] [blame] | 266 | #endif /* __iwl_core_h__ */ |