Lines Matching refs:sq_thresh
1356 struct sq_threshold_params *sq_thresh, in ath6kl_wmi_get_upper_threshold() argument
1360 u8 threshold = (u8) sq_thresh->upper_threshold[size - 1]; in ath6kl_wmi_get_upper_threshold()
1364 if (rssi < sq_thresh->upper_threshold[index]) { in ath6kl_wmi_get_upper_threshold()
1365 threshold = (u8) sq_thresh->upper_threshold[index]; in ath6kl_wmi_get_upper_threshold()
1374 struct sq_threshold_params *sq_thresh, in ath6kl_wmi_get_lower_threshold() argument
1378 u8 threshold = (u8) sq_thresh->lower_threshold[size - 1]; in ath6kl_wmi_get_lower_threshold()
1382 if (rssi > sq_thresh->lower_threshold[index]) { in ath6kl_wmi_get_lower_threshold()
1383 threshold = (u8) sq_thresh->lower_threshold[index]; in ath6kl_wmi_get_lower_threshold()
1413 struct sq_threshold_params *sq_thresh; in ath6kl_wmi_rssi_threshold_event_rx() local
1426 sq_thresh = &wmi->sq_threshld[SIGNAL_QUALITY_METRICS_RSSI]; in ath6kl_wmi_rssi_threshold_event_rx()
1435 if (rssi < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx()
1439 } else if ((rssi < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx()
1440 (rssi >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx()
1442 } else if ((rssi < sq_thresh->upper_threshold[2]) && in ath6kl_wmi_rssi_threshold_event_rx()
1443 (rssi >= sq_thresh->upper_threshold[1])) { in ath6kl_wmi_rssi_threshold_event_rx()
1445 } else if ((rssi < sq_thresh->upper_threshold[3]) && in ath6kl_wmi_rssi_threshold_event_rx()
1446 (rssi >= sq_thresh->upper_threshold[2])) { in ath6kl_wmi_rssi_threshold_event_rx()
1448 } else if ((rssi < sq_thresh->upper_threshold[4]) && in ath6kl_wmi_rssi_threshold_event_rx()
1449 (rssi >= sq_thresh->upper_threshold[3])) { in ath6kl_wmi_rssi_threshold_event_rx()
1451 } else if ((rssi < sq_thresh->upper_threshold[5]) && in ath6kl_wmi_rssi_threshold_event_rx()
1452 (rssi >= sq_thresh->upper_threshold[4])) { in ath6kl_wmi_rssi_threshold_event_rx()
1454 } else if (rssi >= sq_thresh->upper_threshold[5]) { in ath6kl_wmi_rssi_threshold_event_rx()
1459 if (rssi > sq_thresh->lower_threshold[0]) { in ath6kl_wmi_rssi_threshold_event_rx()
1462 rssi, sq_thresh->lower_threshold[0]); in ath6kl_wmi_rssi_threshold_event_rx()
1463 } else if ((rssi > sq_thresh->lower_threshold[1]) && in ath6kl_wmi_rssi_threshold_event_rx()
1464 (rssi <= sq_thresh->lower_threshold[0])) { in ath6kl_wmi_rssi_threshold_event_rx()
1466 } else if ((rssi > sq_thresh->lower_threshold[2]) && in ath6kl_wmi_rssi_threshold_event_rx()
1467 (rssi <= sq_thresh->lower_threshold[1])) { in ath6kl_wmi_rssi_threshold_event_rx()
1469 } else if ((rssi > sq_thresh->lower_threshold[3]) && in ath6kl_wmi_rssi_threshold_event_rx()
1470 (rssi <= sq_thresh->lower_threshold[2])) { in ath6kl_wmi_rssi_threshold_event_rx()
1472 } else if ((rssi > sq_thresh->lower_threshold[4]) && in ath6kl_wmi_rssi_threshold_event_rx()
1473 (rssi <= sq_thresh->lower_threshold[3])) { in ath6kl_wmi_rssi_threshold_event_rx()
1475 } else if ((rssi > sq_thresh->lower_threshold[5]) && in ath6kl_wmi_rssi_threshold_event_rx()
1476 (rssi <= sq_thresh->lower_threshold[4])) { in ath6kl_wmi_rssi_threshold_event_rx()
1478 } else if (rssi <= sq_thresh->lower_threshold[5]) { in ath6kl_wmi_rssi_threshold_event_rx()
1484 lower_rssi_threshold = ath6kl_wmi_get_lower_threshold(rssi, sq_thresh, in ath6kl_wmi_rssi_threshold_event_rx()
1485 sq_thresh->lower_threshold_valid_count); in ath6kl_wmi_rssi_threshold_event_rx()
1486 upper_rssi_threshold = ath6kl_wmi_get_upper_threshold(rssi, sq_thresh, in ath6kl_wmi_rssi_threshold_event_rx()
1487 sq_thresh->upper_threshold_valid_count); in ath6kl_wmi_rssi_threshold_event_rx()
1492 cmd.weight = sq_thresh->weight; in ath6kl_wmi_rssi_threshold_event_rx()
1493 cmd.poll_time = cpu_to_le32(sq_thresh->polling_interval); in ath6kl_wmi_rssi_threshold_event_rx()
1665 struct sq_threshold_params *sq_thresh; in ath6kl_wmi_snr_threshold_event_rx() local
1680 sq_thresh = &wmi->sq_threshld[SIGNAL_QUALITY_METRICS_SNR]; in ath6kl_wmi_snr_threshold_event_rx()
1689 if (snr < sq_thresh->upper_threshold[0]) { in ath6kl_wmi_snr_threshold_event_rx()
1693 } else if ((snr < sq_thresh->upper_threshold[1]) && in ath6kl_wmi_snr_threshold_event_rx()
1694 (snr >= sq_thresh->upper_threshold[0])) { in ath6kl_wmi_snr_threshold_event_rx()
1696 } else if ((snr < sq_thresh->upper_threshold[2]) && in ath6kl_wmi_snr_threshold_event_rx()
1697 (snr >= sq_thresh->upper_threshold[1])) { in ath6kl_wmi_snr_threshold_event_rx()
1699 } else if ((snr < sq_thresh->upper_threshold[3]) && in ath6kl_wmi_snr_threshold_event_rx()
1700 (snr >= sq_thresh->upper_threshold[2])) { in ath6kl_wmi_snr_threshold_event_rx()
1702 } else if (snr >= sq_thresh->upper_threshold[3]) { in ath6kl_wmi_snr_threshold_event_rx()
1707 if (snr > sq_thresh->lower_threshold[0]) { in ath6kl_wmi_snr_threshold_event_rx()
1710 sq_thresh->lower_threshold[0]); in ath6kl_wmi_snr_threshold_event_rx()
1711 } else if ((snr > sq_thresh->lower_threshold[1]) && in ath6kl_wmi_snr_threshold_event_rx()
1712 (snr <= sq_thresh->lower_threshold[0])) { in ath6kl_wmi_snr_threshold_event_rx()
1714 } else if ((snr > sq_thresh->lower_threshold[2]) && in ath6kl_wmi_snr_threshold_event_rx()
1715 (snr <= sq_thresh->lower_threshold[1])) { in ath6kl_wmi_snr_threshold_event_rx()
1717 } else if ((snr > sq_thresh->lower_threshold[3]) && in ath6kl_wmi_snr_threshold_event_rx()
1718 (snr <= sq_thresh->lower_threshold[2])) { in ath6kl_wmi_snr_threshold_event_rx()
1720 } else if (snr <= sq_thresh->lower_threshold[3]) { in ath6kl_wmi_snr_threshold_event_rx()
1726 lower_snr_threshold = ath6kl_wmi_get_lower_threshold(snr, sq_thresh, in ath6kl_wmi_snr_threshold_event_rx()
1727 sq_thresh->lower_threshold_valid_count); in ath6kl_wmi_snr_threshold_event_rx()
1728 upper_snr_threshold = ath6kl_wmi_get_upper_threshold(snr, sq_thresh, in ath6kl_wmi_snr_threshold_event_rx()
1729 sq_thresh->upper_threshold_valid_count); in ath6kl_wmi_snr_threshold_event_rx()
1734 cmd.weight = sq_thresh->weight; in ath6kl_wmi_snr_threshold_event_rx()
1735 cmd.poll_time = cpu_to_le32(sq_thresh->polling_interval); in ath6kl_wmi_snr_threshold_event_rx()