caif: Bugfix for socket priority, bindtodev and dbg channel.
Changes: o Bugfix: SO_PRIORITY for SOL_SOCKET could not be handled in caif's setsockopt, using the struct sock attribute priority instead. o Bugfix: SO_BINDTODEVICE for SOL_SOCKET could not be handled in caif's setsockopt, using the struct sock attribute ifindex instead. o Wrong assert statement for RFM layer segmentation. o CAIF Debug channels was not working over SPI, caif_payload_info containing padding info must be initialized. o Check on pointer before dereferencing when unregister dev in caif_dev.c Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
6cc0e949af
commit
f2527ec436
@@ -28,7 +28,7 @@ struct caif_param {
|
||||
* @sockaddr: Socket address to connect.
|
||||
* @priority: Priority of the connection.
|
||||
* @link_selector: Link selector (high bandwidth or low latency)
|
||||
* @link_name: Name of the CAIF Link Layer to use.
|
||||
* @ifindex: kernel index of the interface.
|
||||
* @param: Connect Request parameters (CAIF_SO_REQ_PARAM).
|
||||
*
|
||||
* This struct is used when connecting a CAIF channel.
|
||||
@@ -39,7 +39,7 @@ struct caif_connect_request {
|
||||
struct sockaddr_caif sockaddr;
|
||||
enum caif_channel_priority priority;
|
||||
enum caif_link_selector link_selector;
|
||||
char link_name[16];
|
||||
int ifindex;
|
||||
struct caif_param param;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user