Home | History | Annotate | Download | only in ic

Lines Matching defs:ani

510 	/* XXX ANI. */
1322 /* XXX ANI. */
1403 struct athn_ani *ani = &sc->sc_ani;
1408 if (ani->noise_immunity_level < 4) {
1409 ani->noise_immunity_level++;
1410 ops->set_noise_immunity_level(sc, ani->noise_immunity_level);
1415 if (ani->spur_immunity_level < 7) {
1416 ani->spur_immunity_level++;
1417 ops->set_spur_immunity_level(sc, ani->spur_immunity_level);
1423 if (ani->firstep_level < 2) {
1424 ani->firstep_level++;
1425 ops->set_firstep_level(sc, ani->firstep_level);
1436 if (ani->ofdm_weak_signal) {
1437 ani->ofdm_weak_signal = 0;
1439 ani->spur_immunity_level = 0;
1441 } else if (ani->firstep_level < 2) {
1442 ani->firstep_level++;
1443 ops->set_firstep_level(sc, ani->firstep_level);
1450 if (!ani->ofdm_weak_signal) {
1451 ani->ofdm_weak_signal = 1;
1454 if (ani->firstep_level < 2) {
1455 ani->firstep_level++;
1456 ops->set_firstep_level(sc, ani->firstep_level);
1464 if (ani->ofdm_weak_signal) {
1465 ani->ofdm_weak_signal = 0;
1468 if (ani->firstep_level > 0) {
1469 ani->firstep_level = 0;
1480 struct athn_ani *ani = &sc->sc_ani;
1485 if (ani->noise_immunity_level < 4) {
1486 ani->noise_immunity_level++;
1487 ops->set_noise_immunity_level(sc, ani->noise_immunity_level);
1493 if (ani->firstep_level < 2) {
1494 ani->firstep_level++;
1495 ops->set_firstep_level(sc, ani->firstep_level);
1506 if (ani->firstep_level < 2) {
1507 ani->firstep_level++;
1508 ops->set_firstep_level(sc, ani->firstep_level);
1515 if (ani->firstep_level > 0) {
1516 ani->firstep_level = 0;
1527 struct athn_ani *ani = &sc->sc_ani;
1533 if (ani->firstep_level > 0) {
1534 ani->firstep_level--;
1535 ops->set_firstep_level(sc, ani->firstep_level);
1551 if (!ani->ofdm_weak_signal) {
1552 ani->ofdm_weak_signal = 1;
1556 if (ani->firstep_level > 0) {
1557 ani->firstep_level--;
1558 ops->set_firstep_level(sc, ani->firstep_level);
1563 if (ani->firstep_level > 0) {
1564 ani->firstep_level--;
1565 ops->set_firstep_level(sc, ani->firstep_level);
1573 if (ani->spur_immunity_level > 0) {
1574 ani->spur_immunity_level--;
1575 ops->set_spur_immunity_level(sc, ani->spur_immunity_level);
1576 } else if (ani->noise_immunity_level > 0) {
1577 ani->noise_immunity_level--;
1578 ops->set_noise_immunity_level(sc, ani->noise_immunity_level);
1587 struct athn_ani *ani = &sc->sc_ani;
1595 ani->listen_time = 0;
1596 ani->ofdm_phy_err_count = 0;
1597 ani->cck_phy_err_count = 0;
1605 struct athn_ani *ani = &sc->sc_ani;
1614 if (ani->cyccnt != 0 && ani->cyccnt <= cyccnt) {
1615 cycdelta = cyccnt - ani->cyccnt;
1616 txfdelta = txfcnt - ani->txfcnt;
1617 rxfdelta = rxfcnt - ani->rxfcnt;
1624 ani->cyccnt = cyccnt;
1625 ani->txfcnt = txfcnt;
1626 ani->rxfcnt = rxfcnt;
1632 ani->listen_time += listen_time;
1637 if (phy1 < ani->ofdm_phy_err_base) {
1638 AR_WRITE(sc, AR_PHY_ERR_1, ani->ofdm_phy_err_base);
1641 if (phy2 < ani->cck_phy_err_base) {
1642 AR_WRITE(sc, AR_PHY_ERR_2, ani->cck_phy_err_base);
1645 if (phy1 < ani->ofdm_phy_err_base || phy2 < ani->cck_phy_err_base) {
1649 ani->ofdm_phy_err_count = phy1 - ani->ofdm_phy_err_base;
1650 ani->cck_phy_err_count = phy2 - ani->cck_phy_err_base;
1652 if (ani->listen_time > 5 * ATHN_ANI_PERIOD) {
1654 if (ani->ofdm_phy_err_count <=
1655 ani->listen_time * ani->ofdm_trig_low / 1000 &&
1656 ani->cck_phy_err_count <=
1657 ani->listen_time * ani->cck_trig_low / 1000)
1661 } else if (ani->listen_time > ATHN_ANI_PERIOD) {
1663 if (ani->ofdm_phy_err_count >
1664 ani->listen_time * ani->ofdm_trig_high / 1000) {
1667 } else if (ani->cck_phy_err_count >
1668 ani->listen_time * ani->cck_trig_high / 1000) {
2556 /* XXX Start ANI. */