<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cannot switch bluetooth headset to HSP/HPF profile ."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87284">bug 87284</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>luiz.dentz@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cannot switch bluetooth headset to HSP/HPF profile ."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87284#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Cannot switch bluetooth headset to HSP/HPF profile ."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=87284">bug 87284</a>
              from <span class="vcard"><a class="email" href="mailto:tanuk@iki.fi" title="Tanu Kaskinen <tanuk@iki.fi>"> <span class="fn">Tanu Kaskinen</span></a>
</span></b>
        <pre>The error message comes from bluez5_sco_acquire_cb(). The function first
creates a socket:

    sock = socket(PF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO);

Then it associates the local bluetooth adapter's address with the socket:

    bind(sock, (struct sockaddr *) &addr, sizeof(addr))

These steps succeed, but when the socket is connected to the remote device,
that fails.

    err = connect(sock, (struct sockaddr *) &addr, sizeof(addr));

I don't know how to interpret the "Unsupported protocol" error. Does that mean
that the kernel thinks that this particular device doesn't support the SCO
protocol? How could that happen? Hints from the BlueZ developers would be
welcome (I'll try to get Luiz to comment).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>