Hi Szymon,
On Thu, Mar 24, 2011, Szymon Janc wrote:
quoted hunk ↗ jump to hunk
@@ -1132,6 +1185,10 @@ static void mgmt_cmd_status(int sk, uint16_t index, void *buf, size_t len)
opcode = btohs(bt_get_unaligned(&ev->opcode));
DBG("status %u opcode %u (index %u)", ev->status, opcode, index);
+
+ if (opcode == MGMT_OP_READ_LOCAL_OOB_DATA)
+ read_local_oob_data_failed(sk, index);
+
}
Firstly, unnecessary empty line at the end of the function. Secondly,
since it's likely that we'll have to deal with cmd_status messages for
other commands as well I think it'd make sense to start a swtich
statement here (with just one case entry for now).
Johan