net: context: TCP packets must be send via net_tcp_send_data()
Do not shortcut the sending side for TCP as we need to use net_tcp_send_data() to send TCP data in order not to have double unref in Bluetooth or IEEE 802.15.4 technologies which has a special TCP packet sending logic. Change-Id: I077db336c6335ccdbbafa4600f98388ecf33955f Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
93533b37d8
commit
2478dd250b
1 changed files with 1 additions and 1 deletions
|
|
@ -1550,7 +1550,7 @@ static int send_data(struct net_context *context,
|
|||
context->user_data = user_data;
|
||||
net_nbuf_set_token(buf, token);
|
||||
|
||||
if (!timeout || net_context_get_ip_proto(context) == IPPROTO_UDP) {
|
||||
if (net_context_get_ip_proto(context) == IPPROTO_UDP) {
|
||||
return net_send_data(buf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue