qcacmn: Add support to use generic netlink sockets for userspace apps

Currently user space communication functions[cnss diag, PTT socket app]
in host driver uses netlink user sockets which is a security concern from
Linux Android SE policies.

Add support for to use netlink family cld80211 which uses generic
netlink sockets.

Change-Id: Ia833249c1f312415e38563d90214979cea3d9f0e
CRs-Fixed: 2015931
Tento commit je obsažen v:
Selvaraj, Sridhar
2017-03-07 16:59:51 +05:30
odevzdal Sandeep Puligilla
rodič ca0e169743
revize 7c6b935c64
6 změnil soubory, kde provedl 555 přidání a 40 odebrání

Zobrazit soubor

@@ -119,6 +119,19 @@ typedef struct sAniAppRegReq {
tAniNlModTypes type; /* module id */
int pid; /* process id */
} tAniNlAppRegReq;
/**
* struct sptt_app_reg_req - PTT register request structure
* @radio: Radio ID
* @wmsg: ANI header
*
* payload structure received as nl data from PTT app/user space
*/
typedef struct sptt_app_reg_req {
int radio;
tAniHdr wmsg;
} ptt_app_reg_req;
typedef struct sAniNlAppRegRsp {
tAniHdr wniHdr; /* Generic WNI msg header */
tAniNlAppRegReq regReq; /* The original request msg */