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()
798 if (!common->ani.caldone) { in ath9k_htc_ani_work()
799 if ((timestamp - common->ani.shortcal_timer) >= in ath9k_htc_ani_work()
802 ath_dbg(common, ANI, "shortcal @%lu\n", jiffies); in ath9k_htc_ani_work()
803 common->ani.shortcal_timer = timestamp; in ath9k_htc_ani_work()
804 common->ani.resetcal_timer = timestamp; in ath9k_htc_ani_work()
807 if ((timestamp - common->ani.resetcal_timer) >= in ath9k_htc_ani_work()
809 common->ani.caldone = ath9k_hw_reset_calvalid(ah); in ath9k_htc_ani_work()
810 if (common->ani.caldone) in ath9k_htc_ani_work()
811 common->ani.resetcal_timer = timestamp; in ath9k_htc_ani_work()
816 if ((timestamp - common->ani.checkani_timer) >= ATH_ANI_POLLINTERVAL) { in ath9k_htc_ani_work()
818 common->ani.checkani_timer = timestamp; in ath9k_htc_ani_work()
832 common->ani.caldone = in ath9k_htc_ani_work()
847 if (!common->ani.caldone) in ath9k_htc_ani_work()
850 ieee80211_queue_delayed_work(common->hw, &priv->ani_work, in ath9k_htc_ani_work()
864 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_tx() local
874 ath_dbg(common, XMIT, "No room for padding\n"); in ath9k_htc_tx()
883 ath_dbg(common, XMIT, "No free TX slot\n"); in ath9k_htc_tx()
889 ath_dbg(common, XMIT, "Tx failed\n"); in ath9k_htc_tx()
907 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_start() local
917 ath_dbg(common, CONFIG, in ath9k_htc_start()
930 ath_err(common, in ath9k_htc_start()
950 ath_dbg(common, CONFIG, in ath9k_htc_start()
953 clear_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_htc_start()
976 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_stop() local
982 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_htc_stop()
983 ath_dbg(common, ANY, "Device not present\n"); in ath9k_htc_stop()
1024 set_bit(ATH_OP_INVALID, &common->op_flags); in ath9k_htc_stop()
1026 ath_dbg(common, CONFIG, "Driver halt\n"); in ath9k_htc_stop()
1035 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_add_interface() local
1060 ath_err(common, in ath9k_htc_add_interface()
1098 !test_bit(ATH_OP_ANI_RUN, &common->op_flags)) { in ath9k_htc_add_interface()
1103 ath_dbg(common, CONFIG, "Attach a VIF of type: %d at idx: %d\n", in ath9k_htc_add_interface()
1117 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_remove_interface() local
1131 ath_err(common, "Unable to remove interface at idx: %d\n", in ath9k_htc_remove_interface()
1162 ath_dbg(common, CONFIG, "Detach Interface at idx: %d\n", avp->index); in ath9k_htc_remove_interface()
1171 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_config() local
1205 ath_dbg(common, CONFIG, "Set channel: %d MHz\n", in ath9k_htc_config()
1210 ath_err(common, "Unable to set channel\n"); in ath9k_htc_config()
1256 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_configure_filter() local
1263 if (test_bit(ATH_OP_INVALID, &common->op_flags)) { in ath9k_htc_configure_filter()
1289 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sta_rc_update_work() local
1298 ath_dbg(common, CONFIG, in ath9k_htc_sta_rc_update_work()
1302 ath_dbg(common, CONFIG, in ath9k_htc_sta_rc_update_work()
1369 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_conf_tx() local
1388 ath_dbg(common, CONFIG, in ath9k_htc_conf_tx()
1395 ath_err(common, "TXQ Update failed\n"); in ath9k_htc_conf_tx()
1416 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_key() local
1438 ath_dbg(common, CONFIG, "Set HW Key\n"); in ath9k_htc_set_key()
1443 ret = ath_key_config(common, vif, sta, key); in ath9k_htc_set_key()
1457 ath_key_delete(common, key); in ath9k_htc_set_key()
1471 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_bssid() local
1474 ath_dbg(common, CONFIG, "BSSID: %pM aid: 0x%x\n", in ath9k_htc_set_bssid()
1475 common->curbssid, common->curaid); in ath9k_htc_set_bssid()
1481 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_bss_iter() local
1485 common->curaid = bss_conf->aid; in ath9k_htc_bss_iter()
1486 common->last_rssi = ATH_RSSI_DUMMY_MARKER; in ath9k_htc_bss_iter()
1487 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_htc_bss_iter()
1488 set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_htc_bss_iter()
1509 struct ath_common *common = ath9k_hw_common(ah); in ath9k_htc_bss_info_changed() local
1516 ath_dbg(common, CONFIG, "BSS Changed ASSOC %d\n", in ath9k_htc_bss_info_changed()
1523 clear_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags); in ath9k_htc_bss_info_changed()
1536 common->curaid = bss_conf->aid; in ath9k_htc_bss_info_changed()
1537 memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); in ath9k_htc_bss_info_changed()
1543 ath_dbg(common, CONFIG, "Beacon enabled for BSS: %pM\n", in ath9k_htc_bss_info_changed()
1557 ath_dbg(common, CONFIG, in ath9k_htc_bss_info_changed()
1578 ath_dbg(common, CONFIG, in ath9k_htc_bss_info_changed()
1699 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sw_scan_start() local
1703 set_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_htc_sw_scan_start()
1714 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_sw_scan_complete() local
1718 clear_bit(ATH_OP_SCANNING, &common->op_flags); in ath9k_htc_sw_scan_complete()
1754 struct ath_common *common = ath9k_hw_common(priv->ah); in ath9k_htc_set_bitrate_mask() local
1768 ath_err(common, in ath9k_htc_set_bitrate_mask()
1779 ath_err(common, in ath9k_htc_set_bitrate_mask()
1785 ath_dbg(common, CONFIG, "Set bitrate masks: 0x%x, 0x%x\n", in ath9k_htc_set_bitrate_mask()