Lines Matching refs:cqm_config

12573 	if (!wdev->cqm_config)  in cfg80211_cqm_rssi_update()
12582 if (!wdev->cqm_config->last_rssi_event_value && in cfg80211_cqm_rssi_update()
12596 wdev->cqm_config->last_rssi_event_value = in cfg80211_cqm_rssi_update()
12600 last = wdev->cqm_config->last_rssi_event_value; in cfg80211_cqm_rssi_update()
12601 hyst = wdev->cqm_config->rssi_hyst; in cfg80211_cqm_rssi_update()
12602 n = wdev->cqm_config->n_rssi_thresholds; in cfg80211_cqm_rssi_update()
12606 if (last < wdev->cqm_config->rssi_thresholds[i]) in cfg80211_cqm_rssi_update()
12613 low = wdev->cqm_config->rssi_thresholds[low_index] - hyst; in cfg80211_cqm_rssi_update()
12619 high = wdev->cqm_config->rssi_thresholds[i] + hyst - 1; in cfg80211_cqm_rssi_update()
12670 struct cfg80211_cqm_config *cqm_config; in nl80211_set_cqm_rssi() local
12672 cqm_config = kzalloc(struct_size(cqm_config, rssi_thresholds, in nl80211_set_cqm_rssi()
12675 if (!cqm_config) { in nl80211_set_cqm_rssi()
12680 cqm_config->rssi_hyst = hysteresis; in nl80211_set_cqm_rssi()
12681 cqm_config->n_rssi_thresholds = n_thresholds; in nl80211_set_cqm_rssi()
12682 memcpy(cqm_config->rssi_thresholds, thresholds, in nl80211_set_cqm_rssi()
12683 flex_array_size(cqm_config, rssi_thresholds, in nl80211_set_cqm_rssi()
12686 wdev->cqm_config = cqm_config; in nl80211_set_cqm_rssi()
18728 if (wdev->cqm_config) { in cfg80211_cqm_rssi_notify()
18729 wdev->cqm_config->last_rssi_event_value = rssi_level; in cfg80211_cqm_rssi_notify()
18734 rssi_level = wdev->cqm_config->last_rssi_event_value; in cfg80211_cqm_rssi_notify()