Lines Matching refs:lq
510 kfree(priv->stations[sta_id].lq); in iwl_remove_station()
511 priv->stations[sta_id].lq = NULL; in iwl_remove_station()
666 struct iwl_link_quality_cmd lq; in iwl_restore_stations() local
698 if (priv->stations[i].lq) { in iwl_restore_stations()
700 iwl_sta_fill_lq(priv, ctx, i, &lq); in iwl_restore_stations()
702 memcpy(&lq, priv->stations[i].lq, in iwl_restore_stations()
705 if (memcmp(&lq, &zero_lq, sizeof(lq))) in iwl_restore_stations()
725 iwl_send_lq_cmd(priv, ctx, &lq, 0, true); in iwl_restore_stations()
764 kfree(priv->stations[i].lq); in iwl_dealloc_bcast_stations()
765 priv->stations[i].lq = NULL; in iwl_dealloc_bcast_stations()
772 struct iwl_link_quality_cmd *lq) in iwl_dump_lq_cmd() argument
775 IWL_DEBUG_RATE(priv, "lq station id 0x%x\n", lq->sta_id); in iwl_dump_lq_cmd()
777 lq->general_params.single_stream_ant_msk, in iwl_dump_lq_cmd()
778 lq->general_params.dual_stream_ant_msk); in iwl_dump_lq_cmd()
782 i, lq->rs_table[i].rate_n_flags); in iwl_dump_lq_cmd()
786 struct iwl_link_quality_cmd *lq) in iwl_dump_lq_cmd() argument
804 struct iwl_link_quality_cmd *lq) in is_lq_table_valid() argument
814 if (le32_to_cpu(lq->rs_table[i].rate_n_flags) & in is_lq_table_valid()
836 struct iwl_link_quality_cmd *lq, u8 flags, bool init) in iwl_send_lq_cmd() argument
843 .data = { lq, }, in iwl_send_lq_cmd()
846 if (WARN_ON(lq->sta_id == IWL_INVALID_STATION)) in iwl_send_lq_cmd()
851 if (!(priv->stations[lq->sta_id].used & IWL_STA_DRIVER_ACTIVE)) { in iwl_send_lq_cmd()
857 iwl_dump_lq_cmd(priv, lq); in iwl_send_lq_cmd()
861 if (is_lq_table_valid(priv, ctx, lq)) in iwl_send_lq_cmd()
872 lq->sta_id); in iwl_send_lq_cmd()
874 priv->stations[lq->sta_id].used &= ~IWL_STA_UCODE_INPROGRESS; in iwl_send_lq_cmd()
941 priv->stations[sta_id].lq = link_cmd; in iwlagn_add_bssid_station()
1310 priv->stations[sta_id].lq = link_cmd; in iwlagn_alloc_bcast_station()
1335 if (priv->stations[sta_id].lq) in iwl_update_bcast_station()
1336 kfree(priv->stations[sta_id].lq); in iwl_update_bcast_station()
1339 priv->stations[sta_id].lq = link_cmd; in iwl_update_bcast_station()