Commit cde9f807 authored by Vikram Kandukuri's avatar Vikram Kandukuri Committed by Marcel Holtmann

Bluetooth: Fix handling of BNEP setup connection requests

According to BNEP test specification the proper response should be sent
for a setup connection request message after the BNEP connection setup
has been completed.
Signed-off-by: default avatarVikram Kandukuri <vikram.kandukuri@atheros.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent c78ae283
...@@ -230,7 +230,6 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len) ...@@ -230,7 +230,6 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len)
switch (cmd) { switch (cmd) {
case BNEP_CMD_NOT_UNDERSTOOD: case BNEP_CMD_NOT_UNDERSTOOD:
case BNEP_SETUP_CONN_REQ:
case BNEP_SETUP_CONN_RSP: case BNEP_SETUP_CONN_RSP:
case BNEP_FILTER_NET_TYPE_RSP: case BNEP_FILTER_NET_TYPE_RSP:
case BNEP_FILTER_MULTI_ADDR_RSP: case BNEP_FILTER_MULTI_ADDR_RSP:
...@@ -245,6 +244,10 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len) ...@@ -245,6 +244,10 @@ static int bnep_rx_control(struct bnep_session *s, void *data, int len)
err = bnep_ctrl_set_mcfilter(s, data, len); err = bnep_ctrl_set_mcfilter(s, data, len);
break; break;
case BNEP_SETUP_CONN_REQ:
err = bnep_send_rsp(s, BNEP_SETUP_CONN_RSP, BNEP_CONN_NOT_ALLOWED);
break;
default: { default: {
u8 pkt[3]; u8 pkt[3];
pkt[0] = BNEP_CONTROL; pkt[0] = BNEP_CONTROL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment