Home | History | Annotate | Download | only in bluetooth_socket

Lines Matching refs:psm

33 const char kInvalidPsmError[] = "Invalid PSM";
89 // Returns |true| if |psm| is a valid PSM.
90 // Per the Bluetooth specification, the PSM field must be at least two octets in
93 bool IsValidPsm(int psm) {
94 if (psm <= 0)
98 while (psm > 0) {
99 octets.push_back(psm & 0xFF);
100 psm = psm >> 8;
421 if (options->psm) {
422 int psm = *options->psm;
423 if (!IsValidPsm(psm)) {
428 service_options.psm.reset(new int(psm));