Thread (12 messages) flat view 12 messages, 2 authors, 2011-03-26

Re: [PATCH v6 2/6] Add support for Out of Band (OOB) association model in mgmtops

From: Johan Hedberg <hidden>
Date: 2011-03-25 08:30:57

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help