title: Legacy pairing, SSP - enable from command line [Linux]
body: <p>As part of my automation project, I have two USB dongles and I need to automate the bluetooth test-cases. Both the devices seem to support SSP. This I infer from the hciconfig output. For ex: typing $hciconfig hci0 sspmode
  I get,</p>
  
  <pre><code>hci0:   Type: BR/EDR  Bus: USB
      BD Address: xx:xx:xx:xx:xx:xx  ACL MTU: 1021:8  SCO MTU: 64:1
      Simple Pairing mode: Enabled
  </code></pre>
  
  <p>and I get a similar output for hci1. My questions are as follows:
  a) How do I make them do SSP from command line [with and without encryption]?
  b) How do I make them pair using legacy pairing method from command line [with and without encryption]?</p>
  
  <p>For both #a and #b, how do I validate that indeed SSP and legacy pairing have happened using hcidump [if someone can point me to what to expect from the hci logs, I Would be very thankful.</p>