Lines Matching refs:common
143 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_mac_bssid_mask() local
162 memcpy(common->bssidmask, iter_data.mask, ETH_ALEN); in ath9k_htc_set_mac_bssid_mask()
165 memcpy(common->macaddr, iter_data.hw_macaddr, ETH_ALEN); in ath9k_htc_set_mac_bssid_mask()
167 ath_hw_setbssidmask(common); in ath9k_htc_set_mac_bssid_mask()
187 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_reset() local
213 ath_err(common, in ath9k_htc_reset()
245 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_set_channel() local
246 struct ieee80211_conf *conf = &common->hw->conf; in ath9k_htc_set_channel()
255 if (test_bit(ATH_OP_INVALID, &common->op_flags)) in ath9k_htc_set_channel()
272 ath_dbg(common, CONFIG, in ath9k_htc_set_channel()
283 ath_err(common, in ath9k_htc_set_channel()
310 if (!test_bit(ATH_OP_SCANNING, &common->op_flags) && in ath9k_htc_set_channel()
318 if (test_bit(ATH_OP_SCANNING, &common->op_flags) && in ath9k_htc_set_channel()
320 ath9k_cmn_spectral_scan_trigger(common, &priv->spec_priv); in ath9k_htc_set_channel()
335 struct ath_common *common = ath9k_hw_common(priv->ah); in __ath9k_htc_remove_monitor_interface() local
341 memcpy(&hvif.myaddr, common->macaddr, ETH_ALEN); in __ath9k_htc_remove_monitor_interface()
345 ath_err(common, "Unable to remove monitor interface at idx: %d\n", in __ath9k_htc_remove_monitor_interface()
355 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_add_monitor_interface() local
377 memcpy(&hvif.myaddr, common->macaddr, ETH_ALEN); in ath9k_htc_add_monitor_interface()
407 memcpy(&tsta.macaddr, common->macaddr, ETH_ALEN); in ath9k_htc_add_monitor_interface()
416 ath_err(common, "Unable to add station entry for monitor mode\n"); in ath9k_htc_add_monitor_interface()
425 ath_dbg(common, CONFIG, in ath9k_htc_add_monitor_interface()
437 ath_dbg(common, FATAL, "Unable to attach a monitor interface\n"); in ath9k_htc_add_monitor_interface()
444 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_remove_monitor_interface() local
454 ath_err(common, "Unable to remove station entry for monitor mode\n"); in ath9k_htc_remove_monitor_interface()
462 ath_dbg(common, CONFIG, in ath9k_htc_remove_monitor_interface()
473 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_add_station() local
493 memcpy(&tsta.bssid, common->curbssid, ETH_ALEN); in ath9k_htc_add_station()
511 ath_err(common, in ath9k_htc_add_station()
518 ath_dbg(common, CONFIG, in ath9k_htc_add_station()
522 ath_dbg(common, CONFIG, in ath9k_htc_add_station()
539 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_remove_station() local
555 ath_err(common, in ath9k_htc_remove_station()
562 ath_dbg(common, CONFIG, in ath9k_htc_remove_station()
566 ath_dbg(common, CONFIG, in ath9k_htc_remove_station()
649 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_send_rate_cmd() local
655 ath_err(common, in ath9k_htc_send_rate_cmd()
665 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_init_rate() local
673 ath_dbg(common, CONFIG, in ath9k_htc_init_rate()
682 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_update_rate() local
700 ath_dbg(common, CONFIG, in ath9k_htc_update_rate()
711 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_tx_aggr_oper() local
729 ath_dbg(common, CONFIG, in ath9k_htc_tx_aggr_oper()
733 ath_dbg(common, CONFIG, in ath9k_htc_tx_aggr_oper()
751 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_start_ani() local
754 common->ani.longcal_timer = timestamp; in ath9k_htc_start_ani()
755 common->ani.shortcal_timer = timestamp; in ath9k_htc_start_ani()
756 common->ani.checkani_timer = timestamp; in ath9k_htc_start_ani()
758 set_bit(ATH_OP_ANI_RUN, &common->op_flags); in ath9k_htc_start_ani()
760 ieee80211_queue_delayed_work(common->hw, &priv->ani_work, in ath9k_htc_start_ani()
766 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_stop_ani() local
768 clear_bit(ATH_OP_ANI_RUN, &common->op_flags); in ath9k_htc_stop_ani()
776 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_ani_work() local
791 if ((timestamp - common->ani.longcal_timer) >= ATH_LONG_CALINTERVAL) { in ath9k_htc_ani_work()
793 ath_dbg(common, ANI, "longcal @%lu\n", jiffies); in ath9k_htc_ani_work()
794 common->ani.longcal_timer = timestamp; in ath9k_htc_ani_work()
801 if (common->ani.caldone <= 0) { in ath9k_htc_ani_work()
802 if ((timestamp - common->ani.shortcal_timer) >= in ath9k_htc_ani_work()
805 ath_dbg(common, ANI, "shortcal @%lu\n", jiffies); in ath9k_htc_ani_work()
806 common->ani.shortcal_timer = timestamp; in ath9k_htc_ani_work()
807 common->ani.resetcal_timer = timestamp; in ath9k_htc_ani_work()
810 if ((timestamp - common->ani.resetcal_timer) >= in ath9k_htc_ani_work()
812 common->ani.caldone = ath9k_hw_reset_calvalid(ah); in ath9k_htc_ani_work()
813 if (common->ani.caldone) in ath9k_htc_ani_work()
814 common->ani.resetcal_timer = timestamp; in ath9k_htc_ani_work()
819 if ((timestamp - common->ani.checkani_timer) >= ATH_ANI_POLLINTERVAL) { in ath9k_htc_ani_work()
821 common->ani.checkani_timer = timestamp; in ath9k_htc_ani_work()
835 common->ani.caldone = in ath9k_htc_ani_work()
854 if (common->ani.caldone <= 0) in ath9k_htc_ani_work()
857 ieee80211_queue_delayed_work(common->hw, &priv->ani_work, in ath9k_htc_ani_work()
871 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_tx() local
881 ath_dbg(common, XMIT, "No room for padding\n"); in ath9k_htc_tx()
890 ath_dbg(common, XMIT, "No free TX slot\n"); in ath9k_htc_tx()
896 ath_dbg(common, XMIT, "Tx failed\n"); in ath9k_htc_tx()
914 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_start() local
924 ath_dbg(common, CONFIG, in ath9k_htc_start()
937 ath_err(common, in ath9k_htc_start()
957 ath_dbg(common, CONFIG, in ath9k_htc_start()
960 clear_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_htc_start()
983 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_stop() local
989 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_htc_stop()
990 ath_dbg(common, ANY, "Device not present\n"); in ath9k_htc_stop()
1031 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_htc_stop()
1033 ath_dbg(common, CONFIG, "Driver halt\n"); in ath9k_htc_stop()
1042 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_add_interface() local
1067 ath_err(common, in ath9k_htc_add_interface()
1105 !test_bit(ATH_OP_ANI_RUN, &common->op_flags)) { in ath9k_htc_add_interface()
1110 ath_dbg(common, CONFIG, "Attach a VIF of type: %d at idx: %d\n", in ath9k_htc_add_interface()
1124 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_remove_interface() local
1138 ath_err(common, "Unable to remove interface at idx: %d\n", in ath9k_htc_remove_interface()
1172 ath_dbg(common, CONFIG, "Detach Interface at idx: %d\n", avp->index); in ath9k_htc_remove_interface()
1181 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_config() local
1215 ath_dbg(common, CONFIG, "Set channel: %d MHz\n", in ath9k_htc_config()
1220 ath_err(common, "Unable to set channel\n"); in ath9k_htc_config()
1265 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_configure_filter() local
1272 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_htc_configure_filter()
1298 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sta_rc_update_work() local
1307 ath_dbg(common, CONFIG, in ath9k_htc_sta_rc_update_work()
1311 ath_dbg(common, CONFIG, in ath9k_htc_sta_rc_update_work()
1378 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_conf_tx() local
1397 ath_dbg(common, CONFIG, in ath9k_htc_conf_tx()
1404 ath_err(common, "TXQ Update failed\n"); in ath9k_htc_conf_tx()
1425 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_key() local
1447 ath_dbg(common, CONFIG, "Set HW Key\n"); in ath9k_htc_set_key()
1452 ret = ath_key_config(common, vif, sta, key); in ath9k_htc_set_key()
1466 ath_key_delete(common, key->hw_key_idx); in ath9k_htc_set_key()
1480 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_bssid() local
1483 ath_dbg(common, CONFIG, "BSSID: %pM aid: 0x%x\n", in ath9k_htc_set_bssid()
1484 common->curbssid, common->curaid); in ath9k_htc_set_bssid()
1490 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_bss_iter() local
1494 common->curaid = bss_conf->aid; in ath9k_htc_bss_iter()
1495 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_htc_bss_iter()
1496 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_htc_bss_iter()
1497 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_htc_bss_iter()
1518 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_bss_info_changed() local
1525 ath_dbg(common, CONFIG, "BSS Changed ASSOC %d\n", in ath9k_htc_bss_info_changed()
1532 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_htc_bss_info_changed()
1545 common->curaid = bss_conf->aid; in ath9k_htc_bss_info_changed()
1546 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_htc_bss_info_changed()
1552 ath_dbg(common, CONFIG, "Beacon enabled for BSS: %pM\n", in ath9k_htc_bss_info_changed()
1566 ath_dbg(common, CONFIG, in ath9k_htc_bss_info_changed()
1587 ath_dbg(common, CONFIG, in ath9k_htc_bss_info_changed()
1709 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sw_scan_start() local
1713 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_htc_sw_scan_start()
1724 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sw_scan_complete() local
1728 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_htc_sw_scan_complete()
1764 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_bitrate_mask() local
1778 ath_err(common, in ath9k_htc_set_bitrate_mask()
1789 ath_err(common, in ath9k_htc_set_bitrate_mask()
1795 ath_dbg(common, CONFIG, "Set bitrate masks: 0x%x, 0x%x\n", in ath9k_htc_set_bitrate_mask()