Lines Matching refs:cca
472 rdev->wpan_phy.cca.mode)) in nl802154_send_wpan_phy()
475 if (rdev->wpan_phy.cca.mode == NL802154_CCA_ENERGY_CARRIER) { in nl802154_send_wpan_phy()
477 rdev->wpan_phy.cca.opt)) in nl802154_send_wpan_phy()
977 struct wpan_phy_cca cca; in nl802154_set_cca_mode() local
985 cca.mode = nla_get_u32(info->attrs[NL802154_ATTR_CCA_MODE]); in nl802154_set_cca_mode()
987 if (cca.mode < NL802154_CCA_ENERGY || in nl802154_set_cca_mode()
988 cca.mode > NL802154_CCA_ATTR_MAX || in nl802154_set_cca_mode()
989 !(rdev->wpan_phy.supported.cca_modes & BIT(cca.mode))) in nl802154_set_cca_mode()
992 if (cca.mode == NL802154_CCA_ENERGY_CARRIER) { in nl802154_set_cca_mode()
996 cca.opt = nla_get_u32(info->attrs[NL802154_ATTR_CCA_OPT]); in nl802154_set_cca_mode()
997 if (cca.opt > NL802154_CCA_OPT_ATTR_MAX || in nl802154_set_cca_mode()
998 !(rdev->wpan_phy.supported.cca_opts & BIT(cca.opt))) in nl802154_set_cca_mode()
1002 return rdev_set_cca_mode(rdev, &cca); in nl802154_set_cca_mode()