Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 1 | /* |
Ivo van Doorn | 811aa9c | 2008-02-03 15:42:53 +0100 | [diff] [blame] | 2 | Copyright (C) 2004 - 2008 rt2x00 SourceForge Project |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 3 | <http://rt2x00.serialmonkey.com> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 2 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License |
| 16 | along with this program; if not, write to the |
| 17 | Free Software Foundation, Inc., |
| 18 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | */ |
| 20 | |
| 21 | /* |
| 22 | Module: rt2x00lib |
| 23 | Abstract: rt2x00 generic configuration routines. |
| 24 | */ |
| 25 | |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 26 | #include <linux/kernel.h> |
| 27 | #include <linux/module.h> |
| 28 | |
| 29 | #include "rt2x00.h" |
| 30 | #include "rt2x00lib.h" |
| 31 | |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 32 | void rt2x00lib_config_intf(struct rt2x00_dev *rt2x00dev, |
| 33 | struct rt2x00_intf *intf, |
| 34 | enum ieee80211_if_types type, |
| 35 | u8 *mac, u8 *bssid) |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 36 | { |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 37 | struct rt2x00intf_conf conf; |
| 38 | unsigned int flags = 0; |
Ivo van Doorn | 4abee4b | 2007-10-06 14:11:46 +0200 | [diff] [blame] | 39 | |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 40 | conf.type = type; |
Ivo van Doorn | feb2469 | 2007-10-06 14:14:29 +0200 | [diff] [blame] | 41 | |
| 42 | switch (type) { |
| 43 | case IEEE80211_IF_TYPE_IBSS: |
| 44 | case IEEE80211_IF_TYPE_AP: |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 45 | conf.sync = TSF_SYNC_BEACON; |
Ivo van Doorn | feb2469 | 2007-10-06 14:14:29 +0200 | [diff] [blame] | 46 | break; |
| 47 | case IEEE80211_IF_TYPE_STA: |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 48 | conf.sync = TSF_SYNC_INFRA; |
Ivo van Doorn | feb2469 | 2007-10-06 14:14:29 +0200 | [diff] [blame] | 49 | break; |
| 50 | default: |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 51 | conf.sync = TSF_SYNC_NONE; |
Ivo van Doorn | feb2469 | 2007-10-06 14:14:29 +0200 | [diff] [blame] | 52 | break; |
| 53 | } |
| 54 | |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 55 | /* |
| 56 | * Note that when NULL is passed as address we will send |
| 57 | * 00:00:00:00:00 to the device to clear the address. |
| 58 | * This will prevent the device being confused when it wants |
| 59 | * to ACK frames or consideres itself associated. |
| 60 | */ |
| 61 | memset(&conf.mac, 0, sizeof(conf.mac)); |
| 62 | if (mac) |
| 63 | memcpy(&conf.mac, mac, ETH_ALEN); |
| 64 | |
| 65 | memset(&conf.bssid, 0, sizeof(conf.bssid)); |
| 66 | if (bssid) |
| 67 | memcpy(&conf.bssid, bssid, ETH_ALEN); |
| 68 | |
| 69 | flags |= CONFIG_UPDATE_TYPE; |
| 70 | if (mac || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) |
| 71 | flags |= CONFIG_UPDATE_MAC; |
| 72 | if (bssid || (!rt2x00dev->intf_ap_count && !rt2x00dev->intf_sta_count)) |
| 73 | flags |= CONFIG_UPDATE_BSSID; |
| 74 | |
| 75 | rt2x00dev->ops->lib->config_intf(rt2x00dev, intf, &conf, flags); |
| 76 | } |
| 77 | |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 78 | void rt2x00lib_config_erp(struct rt2x00_dev *rt2x00dev, |
| 79 | struct rt2x00_intf *intf, |
| 80 | struct ieee80211_bss_conf *bss_conf) |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 81 | { |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 82 | struct rt2x00lib_erp erp; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 83 | int retval; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 84 | |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 85 | memset(&erp, 0, sizeof(erp)); |
| 86 | |
| 87 | erp.short_preamble = bss_conf->use_short_preamble; |
| 88 | erp.ack_timeout = PLCP + get_duration(ACK_SIZE, 10); |
| 89 | erp.ack_consume_time = SIFS + PLCP + get_duration(ACK_SIZE, 10); |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 90 | |
| 91 | if (rt2x00dev->hw->conf.flags & IEEE80211_CONF_SHORT_SLOT_TIME) |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 92 | erp.ack_timeout += SHORT_DIFS; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 93 | else |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 94 | erp.ack_timeout += DIFS; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 95 | |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 96 | if (bss_conf->use_short_preamble) { |
| 97 | erp.ack_timeout += SHORT_PREAMBLE; |
| 98 | erp.ack_consume_time += SHORT_PREAMBLE; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 99 | } else { |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 100 | erp.ack_timeout += PREAMBLE; |
| 101 | erp.ack_consume_time += PREAMBLE; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 102 | } |
| 103 | |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 104 | retval = rt2x00dev->ops->lib->config_erp(rt2x00dev, &erp); |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 105 | |
| 106 | if (retval) { |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 107 | spin_lock(&intf->lock); |
| 108 | intf->delayed_flags |= DELAYED_CONFIG_ERP; |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 109 | queue_work(rt2x00dev->hw->workqueue, &rt2x00dev->intf_work); |
Ivo van Doorn | 7281037 | 2008-03-09 22:46:18 +0100 | [diff] [blame^] | 110 | spin_unlock(&intf->lock); |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 111 | } |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 112 | } |
| 113 | |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 114 | void rt2x00lib_config_antenna(struct rt2x00_dev *rt2x00dev, |
| 115 | enum antenna rx, enum antenna tx) |
| 116 | { |
| 117 | struct rt2x00lib_conf libconf; |
| 118 | |
| 119 | libconf.ant.rx = rx; |
| 120 | libconf.ant.tx = tx; |
| 121 | |
Ivo van Doorn | 05253c9 | 2008-02-25 23:15:08 +0100 | [diff] [blame] | 122 | if (rx == rt2x00dev->link.ant.active.rx && |
| 123 | tx == rt2x00dev->link.ant.active.tx) |
| 124 | return; |
| 125 | |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 126 | /* |
Ivo van Doorn | e25c4bb | 2007-10-27 13:39:28 +0200 | [diff] [blame] | 127 | * Antenna setup changes require the RX to be disabled, |
| 128 | * else the changes will be ignored by the device. |
| 129 | */ |
| 130 | if (test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags)) |
Ivo van Doorn | 61667d8 | 2008-02-25 23:15:05 +0100 | [diff] [blame] | 131 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_OFF_LINK); |
Ivo van Doorn | e25c4bb | 2007-10-27 13:39:28 +0200 | [diff] [blame] | 132 | |
| 133 | /* |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 134 | * Write new antenna setup to device and reset the link tuner. |
| 135 | * The latter is required since we need to recalibrate the |
| 136 | * noise-sensitivity ratio for the new setup. |
| 137 | */ |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 138 | rt2x00dev->ops->lib->config(rt2x00dev, &libconf, CONFIG_UPDATE_ANTENNA); |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 139 | rt2x00lib_reset_link_tuner(rt2x00dev); |
| 140 | |
| 141 | rt2x00dev->link.ant.active.rx = libconf.ant.rx; |
| 142 | rt2x00dev->link.ant.active.tx = libconf.ant.tx; |
Ivo van Doorn | e25c4bb | 2007-10-27 13:39:28 +0200 | [diff] [blame] | 143 | |
| 144 | if (test_bit(DEVICE_ENABLED_RADIO, &rt2x00dev->flags)) |
Ivo van Doorn | 61667d8 | 2008-02-25 23:15:05 +0100 | [diff] [blame] | 145 | rt2x00lib_toggle_rx(rt2x00dev, STATE_RADIO_RX_ON_LINK); |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 146 | } |
| 147 | |
Ivo van Doorn | 066cb63 | 2007-09-25 20:55:39 +0200 | [diff] [blame] | 148 | void rt2x00lib_config(struct rt2x00_dev *rt2x00dev, |
| 149 | struct ieee80211_conf *conf, const int force_config) |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 150 | { |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 151 | struct rt2x00lib_conf libconf; |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 152 | struct ieee80211_supported_band *band; |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 153 | struct ieee80211_rate *rate; |
Ivo van Doorn | addc81bd | 2007-10-13 16:26:23 +0200 | [diff] [blame] | 154 | struct antenna_setup *default_ant = &rt2x00dev->default_ant; |
Ivo van Doorn | 69f81a2 | 2007-10-13 16:26:36 +0200 | [diff] [blame] | 155 | struct antenna_setup *active_ant = &rt2x00dev->link.ant.active; |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 156 | int flags = 0; |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 157 | int short_slot_time; |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 158 | |
| 159 | /* |
Ivo van Doorn | 066cb63 | 2007-09-25 20:55:39 +0200 | [diff] [blame] | 160 | * In some situations we want to force all configurations |
| 161 | * to be reloaded (When resuming for instance). |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 162 | */ |
Ivo van Doorn | 066cb63 | 2007-09-25 20:55:39 +0200 | [diff] [blame] | 163 | if (force_config) { |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 164 | flags = CONFIG_UPDATE_ALL; |
| 165 | goto config; |
| 166 | } |
| 167 | |
| 168 | /* |
| 169 | * Check which configuration options have been |
| 170 | * updated and should be send to the device. |
| 171 | */ |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 172 | if (rt2x00dev->rx_status.band != conf->channel->band) |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 173 | flags |= CONFIG_UPDATE_PHYMODE; |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 174 | if (rt2x00dev->rx_status.freq != conf->channel->center_freq) |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 175 | flags |= CONFIG_UPDATE_CHANNEL; |
| 176 | if (rt2x00dev->tx_power != conf->power_level) |
| 177 | flags |= CONFIG_UPDATE_TXPOWER; |
Ivo van Doorn | addc81bd | 2007-10-13 16:26:23 +0200 | [diff] [blame] | 178 | |
| 179 | /* |
| 180 | * Determining changes in the antenna setups request several checks: |
| 181 | * antenna_sel_{r,t}x = 0 |
| 182 | * -> Does active_{r,t}x match default_{r,t}x |
| 183 | * -> Is default_{r,t}x SW_DIVERSITY |
| 184 | * antenna_sel_{r,t}x = 1/2 |
| 185 | * -> Does active_{r,t}x match antenna_sel_{r,t}x |
| 186 | * The reason for not updating the antenna while SW diversity |
| 187 | * should be used is simple: Software diversity means that |
| 188 | * we should switch between the antenna's based on the |
| 189 | * quality. This means that the current antenna is good enough |
| 190 | * to work with untill the link tuner decides that an antenna |
| 191 | * switch should be performed. |
| 192 | */ |
| 193 | if (!conf->antenna_sel_rx && |
| 194 | default_ant->rx != ANTENNA_SW_DIVERSITY && |
| 195 | default_ant->rx != active_ant->rx) |
| 196 | flags |= CONFIG_UPDATE_ANTENNA; |
| 197 | else if (conf->antenna_sel_rx && |
| 198 | conf->antenna_sel_rx != active_ant->rx) |
| 199 | flags |= CONFIG_UPDATE_ANTENNA; |
Mattias Nissler | 16b1951 | 2007-10-13 16:26:57 +0200 | [diff] [blame] | 200 | else if (active_ant->rx == ANTENNA_SW_DIVERSITY) |
| 201 | flags |= CONFIG_UPDATE_ANTENNA; |
Ivo van Doorn | addc81bd | 2007-10-13 16:26:23 +0200 | [diff] [blame] | 202 | |
| 203 | if (!conf->antenna_sel_tx && |
| 204 | default_ant->tx != ANTENNA_SW_DIVERSITY && |
| 205 | default_ant->tx != active_ant->tx) |
| 206 | flags |= CONFIG_UPDATE_ANTENNA; |
| 207 | else if (conf->antenna_sel_tx && |
| 208 | conf->antenna_sel_tx != active_ant->tx) |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 209 | flags |= CONFIG_UPDATE_ANTENNA; |
Mattias Nissler | 16b1951 | 2007-10-13 16:26:57 +0200 | [diff] [blame] | 210 | else if (active_ant->tx == ANTENNA_SW_DIVERSITY) |
| 211 | flags |= CONFIG_UPDATE_ANTENNA; |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 212 | |
| 213 | /* |
| 214 | * The following configuration options are never |
| 215 | * stored anywhere and will always be updated. |
| 216 | */ |
| 217 | flags |= CONFIG_UPDATE_SLOT_TIME; |
| 218 | flags |= CONFIG_UPDATE_BEACON_INT; |
| 219 | |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 220 | /* |
| 221 | * We have determined what options should be updated, |
| 222 | * now precalculate device configuration values depending |
| 223 | * on what configuration options need to be updated. |
| 224 | */ |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 225 | config: |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 226 | memset(&libconf, 0, sizeof(libconf)); |
| 227 | |
| 228 | if (flags & CONFIG_UPDATE_PHYMODE) { |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 229 | band = &rt2x00dev->bands[conf->channel->band]; |
| 230 | rate = &band->bitrates[band->n_bitrates - 1]; |
Ivo van Doorn | f5507ce | 2008-02-03 15:51:13 +0100 | [diff] [blame] | 231 | |
| 232 | libconf.band = conf->channel->band; |
Ivo van Doorn | 70e2fed | 2008-02-03 15:50:40 +0100 | [diff] [blame] | 233 | libconf.basic_rates = rt2x00_get_rate(rate->hw_value)->ratemask; |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 234 | } |
| 235 | |
| 236 | if (flags & CONFIG_UPDATE_CHANNEL) { |
| 237 | memcpy(&libconf.rf, |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 238 | &rt2x00dev->spec.channels[conf->channel->hw_value], |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 239 | sizeof(libconf.rf)); |
| 240 | } |
| 241 | |
Ivo van Doorn | addc81bd | 2007-10-13 16:26:23 +0200 | [diff] [blame] | 242 | if (flags & CONFIG_UPDATE_ANTENNA) { |
| 243 | if (conf->antenna_sel_rx) |
| 244 | libconf.ant.rx = conf->antenna_sel_rx; |
| 245 | else if (default_ant->rx != ANTENNA_SW_DIVERSITY) |
| 246 | libconf.ant.rx = default_ant->rx; |
| 247 | else if (active_ant->rx == ANTENNA_SW_DIVERSITY) |
| 248 | libconf.ant.rx = ANTENNA_B; |
| 249 | |
| 250 | if (conf->antenna_sel_tx) |
| 251 | libconf.ant.tx = conf->antenna_sel_tx; |
| 252 | else if (default_ant->tx != ANTENNA_SW_DIVERSITY) |
| 253 | libconf.ant.tx = default_ant->tx; |
| 254 | else if (active_ant->tx == ANTENNA_SW_DIVERSITY) |
| 255 | libconf.ant.tx = ANTENNA_B; |
| 256 | } |
| 257 | |
Ivo van Doorn | 5c58ee5 | 2007-10-06 13:34:52 +0200 | [diff] [blame] | 258 | if (flags & CONFIG_UPDATE_SLOT_TIME) { |
| 259 | short_slot_time = conf->flags & IEEE80211_CONF_SHORT_SLOT_TIME; |
| 260 | |
| 261 | libconf.slot_time = |
| 262 | short_slot_time ? SHORT_SLOT_TIME : SLOT_TIME; |
| 263 | libconf.sifs = SIFS; |
| 264 | libconf.pifs = short_slot_time ? SHORT_PIFS : PIFS; |
| 265 | libconf.difs = short_slot_time ? SHORT_DIFS : DIFS; |
| 266 | libconf.eifs = EIFS; |
| 267 | } |
| 268 | |
| 269 | libconf.conf = conf; |
| 270 | |
| 271 | /* |
| 272 | * Start configuration. |
| 273 | */ |
Ivo van Doorn | 6bb40dd | 2008-02-03 15:49:59 +0100 | [diff] [blame] | 274 | rt2x00dev->ops->lib->config(rt2x00dev, &libconf, flags); |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 275 | |
| 276 | /* |
| 277 | * Some configuration changes affect the link quality |
| 278 | * which means we need to reset the link tuner. |
| 279 | */ |
| 280 | if (flags & (CONFIG_UPDATE_CHANNEL | CONFIG_UPDATE_ANTENNA)) |
| 281 | rt2x00lib_reset_link_tuner(rt2x00dev); |
| 282 | |
Mattias Nissler | 16b1951 | 2007-10-13 16:26:57 +0200 | [diff] [blame] | 283 | if (flags & CONFIG_UPDATE_PHYMODE) { |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 284 | rt2x00dev->curr_band = conf->channel->band; |
| 285 | rt2x00dev->rx_status.band = conf->channel->band; |
Mattias Nissler | 16b1951 | 2007-10-13 16:26:57 +0200 | [diff] [blame] | 286 | } |
| 287 | |
Johannes Berg | 8318d78 | 2008-01-24 19:38:38 +0100 | [diff] [blame] | 288 | rt2x00dev->rx_status.freq = conf->channel->center_freq; |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 289 | rt2x00dev->tx_power = conf->power_level; |
Mattias Nissler | 16b1951 | 2007-10-13 16:26:57 +0200 | [diff] [blame] | 290 | |
| 291 | if (flags & CONFIG_UPDATE_ANTENNA) { |
| 292 | rt2x00dev->link.ant.active.rx = libconf.ant.rx; |
| 293 | rt2x00dev->link.ant.active.tx = libconf.ant.tx; |
| 294 | } |
Ivo van Doorn | 95ea362 | 2007-09-25 17:57:13 -0700 | [diff] [blame] | 295 | } |