Message ID | 3020b8d0c7d39428aec573153b3c3414213be7ce.camel@peiker-cee.de |
---|---|
State | New |
Headers | show |
Series | bluetooth: If unknown option in L2CAP Configuration Request is a hint, Bluetooth stack responds with "Command Reject" instead of "Configuration Response" | expand |
--- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -3381,11 +3381,11 @@ break; default: - if (hint) - break; - result = L2CAP_CONF_UNKNOWN; - *((u8 *) ptr++) = type; + + if (!hint) + *((u8 *) ptr++) = type; + break; } }