Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee99347b authored by Hsin-chen Chuang's avatar Hsin-chen Chuang
Browse files

topshim: hfp: Respond to AT+CNUM query

Send an OK response to HF to indicate that we have no subscriber info.
This is mandatory support for passing HFP/AG/NUM/BV-01-I.

Bug: 214149380
Tag: #floss
Test: HFP/AG/NUM/BV-01-I
Change-Id: If515d4385e1c7a2a4a6345f5bdc7199a42cf3eac
parent 63df44db
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -108,7 +108,11 @@ class DBusHeadsetCallbacks : public headset::Callbacks {

  void AtChldCallback([[maybe_unused]] headset::bthf_chld_type_t chld, [[maybe_unused]] RawAddress* bd_addr) override {}

  void AtCnumCallback([[maybe_unused]] RawAddress* bd_addr) override {}
  void AtCnumCallback(RawAddress* bd_addr) override {
    // Send an OK response to HF to indicate that we have no subscriber info.
    // This is mandatory support for passing HFP/AG/NUM/BV-01-I.
    headset_->AtResponse(headset::BTHF_AT_RESPONSE_OK, 0, bd_addr);
  }

  void AtCindCallback(RawAddress* bd_addr) override {
    // This is required to setup the SLC, the format of the response should be