• Home
  • Raw
  • Download

Lines Matching refs:adv_flags

7579 static u8 tlv_data_max_len(struct hci_dev *hdev, u32 adv_flags,  in tlv_data_max_len()  argument
7585 if (adv_flags & (MGMT_ADV_FLAG_DISCOV | in tlv_data_max_len()
7590 if (adv_flags & MGMT_ADV_FLAG_TX_POWER) in tlv_data_max_len()
7593 if (adv_flags & MGMT_ADV_FLAG_LOCAL_NAME) in tlv_data_max_len()
7596 if (adv_flags & (MGMT_ADV_FLAG_APPEARANCE)) in tlv_data_max_len()
7603 static bool flags_managed(u32 adv_flags) in flags_managed() argument
7605 return adv_flags & (MGMT_ADV_FLAG_DISCOV | in flags_managed()
7610 static bool tx_power_managed(u32 adv_flags) in tx_power_managed() argument
7612 return adv_flags & MGMT_ADV_FLAG_TX_POWER; in tx_power_managed()
7615 static bool name_managed(u32 adv_flags) in name_managed() argument
7617 return adv_flags & MGMT_ADV_FLAG_LOCAL_NAME; in name_managed()
7620 static bool appearance_managed(u32 adv_flags) in appearance_managed() argument
7622 return adv_flags & MGMT_ADV_FLAG_APPEARANCE; in appearance_managed()
7625 static bool tlv_data_is_valid(struct hci_dev *hdev, u32 adv_flags, u8 *data, in tlv_data_is_valid() argument
7631 max_len = tlv_data_max_len(hdev, adv_flags, is_adv_data); in tlv_data_is_valid()
7644 (!is_adv_data || flags_managed(adv_flags))) in tlv_data_is_valid()
7647 if (data[i + 1] == EIR_TX_POWER && tx_power_managed(adv_flags)) in tlv_data_is_valid()
7650 if (data[i + 1] == EIR_NAME_COMPLETE && name_managed(adv_flags)) in tlv_data_is_valid()
7653 if (data[i + 1] == EIR_NAME_SHORT && name_managed(adv_flags)) in tlv_data_is_valid()
7657 appearance_managed(adv_flags)) in tlv_data_is_valid()
7670 static bool requested_adv_flags_are_valid(struct hci_dev *hdev, u32 adv_flags) in requested_adv_flags_are_valid() argument
7678 phy_flags = adv_flags & MGMT_ADV_FLAG_SEC_MASK; in requested_adv_flags_are_valid()
7679 if (adv_flags & ~supported_flags || in requested_adv_flags_are_valid()