Lines Matching +full:disable +full:- +full:key +full:- +full:power
24 * Copyright (c) 2007-2008 Atheros Communications, Inc.
48 if (conf_is_ht40(&ar->hw->conf)) in carl9170_set_dyn_sifs_ack()
51 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) in carl9170_set_dyn_sifs_ack()
64 if (conf_is_ht(&ar->hw->conf)) { in carl9170_set_rts_cts_rate()
69 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_2GHZ) { in carl9170_set_rts_cts_rate()
96 if ((ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) || in carl9170_set_slot_time()
97 vif->bss_conf.use_short_slot) in carl9170_set_slot_time()
119 basic = (vif->bss_conf.basic_rates & 0xf); in carl9170_set_mac_rates()
120 basic |= (vif->bss_conf.basic_rates & 0xff0) << 4; in carl9170_set_mac_rates()
123 if (ar->hw->conf.chandef.chan->band == NL80211_BAND_5GHZ) in carl9170_set_mac_rates()
140 carl9170_regwrite(AR9170_MAC_REG_AC0_CW, ar->edcf[0].cw_min | in carl9170_set_qos()
141 (ar->edcf[0].cw_max << 16)); in carl9170_set_qos()
142 carl9170_regwrite(AR9170_MAC_REG_AC1_CW, ar->edcf[1].cw_min | in carl9170_set_qos()
143 (ar->edcf[1].cw_max << 16)); in carl9170_set_qos()
144 carl9170_regwrite(AR9170_MAC_REG_AC2_CW, ar->edcf[2].cw_min | in carl9170_set_qos()
145 (ar->edcf[2].cw_max << 16)); in carl9170_set_qos()
146 carl9170_regwrite(AR9170_MAC_REG_AC3_CW, ar->edcf[3].cw_min | in carl9170_set_qos()
147 (ar->edcf[3].cw_max << 16)); in carl9170_set_qos()
148 carl9170_regwrite(AR9170_MAC_REG_AC4_CW, ar->edcf[4].cw_min | in carl9170_set_qos()
149 (ar->edcf[4].cw_max << 16)); in carl9170_set_qos()
152 ((ar->edcf[0].aifs * 9 + 10)) | in carl9170_set_qos()
153 ((ar->edcf[1].aifs * 9 + 10) << 12) | in carl9170_set_qos()
154 ((ar->edcf[2].aifs * 9 + 10) << 24)); in carl9170_set_qos()
156 ((ar->edcf[2].aifs * 9 + 10) >> 8) | in carl9170_set_qos()
157 ((ar->edcf[3].aifs * 9 + 10) << 4) | in carl9170_set_qos()
158 ((ar->edcf[4].aifs * 9 + 10) << 16)); in carl9170_set_qos()
161 ar->edcf[0].txop | ar->edcf[1].txop << 16); in carl9170_set_qos()
163 ar->edcf[2].txop | ar->edcf[3].txop << 16 | in carl9170_set_qos()
164 ar->edcf[4].txop << 24); in carl9170_set_qos()
195 /* CF-END & CF-ACK rate => 24M OFDM */ in carl9170_init_mac()
231 /* Disable Rx TimeOut, workaround for BB. */ in carl9170_init_mac()
248 /* disable PRETBTT interrupt */ in carl9170_init_mac()
278 if (WARN_ON(id >= ar->fw.vif_num)) in carl9170_mod_virtual_mac()
279 return -EINVAL; in carl9170_mod_virtual_mac()
282 AR9170_MAC_REG_ACK_TABLE + (id - 1) * 8, mac); in carl9170_mod_virtual_mac()
297 ar->cur_mc_hash = mc_hash; in carl9170_update_multicast()
304 struct ath_common *common = &ar->common; in carl9170_set_operating_mode()
318 mac_addr = common->macaddr; in carl9170_set_operating_mode()
319 bssid = common->curbssid; in carl9170_set_operating_mode()
321 switch (vif->type) { in carl9170_set_operating_mode()
337 WARN(1, "Unsupported operation mode %x\n", vif->type); in carl9170_set_operating_mode()
338 err = -EOPNOTSUPP; in carl9170_set_operating_mode()
359 mac_addr = common->macaddr; in carl9170_set_operating_mode()
367 if (ar->rx_software_decryption) in carl9170_set_operating_mode()
370 if (ar->sniffer_enabled) { in carl9170_set_operating_mode()
410 mvif = (void *) vif->drv_priv; in carl9170_set_beacon_timers()
412 if (mvif->enable_beacon && !WARN_ON(!ar->beacon_enabled)) { in carl9170_set_beacon_timers()
413 ar->global_beacon_int = vif->bss_conf.beacon_int / in carl9170_set_beacon_timers()
414 ar->beacon_enabled; in carl9170_set_beacon_timers()
417 vif->bss_conf.dtim_period); in carl9170_set_beacon_timers()
419 switch (vif->type) { in carl9170_set_beacon_timers()
431 } else if (vif->type == NL80211_IFTYPE_STATION) { in carl9170_set_beacon_timers()
432 ar->global_beacon_int = vif->bss_conf.beacon_int; in carl9170_set_beacon_timers()
435 ar->hw->conf.ps_dtim_period); in carl9170_set_beacon_timers()
441 if (ar->global_beacon_int) { in carl9170_set_beacon_timers()
442 if (ar->global_beacon_int < 15) { in carl9170_set_beacon_timers()
444 return -ERANGE; in carl9170_set_beacon_timers()
447 ar->global_pretbtt = ar->global_beacon_int - in carl9170_set_beacon_timers()
450 ar->global_pretbtt = 0; in carl9170_set_beacon_timers()
453 ar->global_beacon_int = 0; in carl9170_set_beacon_timers()
454 ar->global_pretbtt = 0; in carl9170_set_beacon_timers()
459 SET_VAL(AR9170_MAC_BCN_PERIOD, v, ar->global_beacon_int); in carl9170_set_beacon_timers()
460 SET_VAL(AR9170_MAC_PRETBTT, pretbtt, ar->global_pretbtt); in carl9170_set_beacon_timers()
461 SET_VAL(AR9170_MAC_PRETBTT2, pretbtt, ar->global_pretbtt); in carl9170_set_beacon_timers()
474 struct carl9170_set_key_cmd key = { }; in carl9170_upload_key() local
480 key.user = cpu_to_le16(id); in carl9170_upload_key()
481 key.keyId = cpu_to_le16(keyidx); in carl9170_upload_key()
482 key.type = cpu_to_le16(ktype); in carl9170_upload_key()
483 memcpy(&key.macAddr, mac, ETH_ALEN); in carl9170_upload_key()
485 memcpy(&key.key, keydata, keylen); in carl9170_upload_key()
488 sizeof(key), (u8 *)&key, 0, NULL); in carl9170_upload_key()
493 struct carl9170_disable_key_cmd key = { }; in carl9170_disable_key() local
495 key.user = cpu_to_le16(id); in carl9170_disable_key()
498 sizeof(key), (u8 *)&key, 0, NULL); in carl9170_disable_key()
503 unsigned int power, chains; in carl9170_set_mac_tpc() local
505 if (ar->eeprom.tx_mask != 1) in carl9170_set_mac_tpc()
510 switch (channel->band) { in carl9170_set_mac_tpc()
512 power = ar->power_2G_ofdm[0] & 0x3f; in carl9170_set_mac_tpc()
515 power = ar->power_5G_leg[0] & 0x3f; in carl9170_set_mac_tpc()
521 power = min_t(unsigned int, power, ar->hw->conf.power_level * 2); in carl9170_set_mac_tpc()
525 0x3c1e | power << 20 | chains << 26); in carl9170_set_mac_tpc()
527 power << 5 | chains << 11 | in carl9170_set_mac_tpc()
528 power << 21 | chains << 27); in carl9170_set_mac_tpc()
530 power << 5 | chains << 11 | in carl9170_set_mac_tpc()
531 power << 21 | chains << 27); in carl9170_set_mac_tpc()