qcacmn: Add Netlink deinit functionality in Spectral

Define os_if_spectral_netlink_deinit to close the Spectral socket and
de-register the os_if callbacks

Change-Id: I3d054c2a2d630d4d959861d3620592010d04c09a
CRs-Fixed: 2186113
Šī revīzija ir iekļauta:
Shiva Krishna Pittala
2018-02-13 14:25:56 +05:30
revīziju iesūtīja nshrivas
vecāks 448e07a99e
revīzija a143f83a27
10 mainīti faili ar 101 papildinājumiem un 22 dzēšanām

Parādīt failu

@@ -510,13 +510,11 @@ struct wlan_objmgr_pdev;
* @get_nbuff: Get the socket buffer to send the data to the application
* @send_nl_bcast: Send data to the application using netlink broadcast
* @send_nl_unicast: Send data to the application using netlink unicast
* @destroy_netlink: De-initialize Netlink data structures
*/
struct spectral_nl_cb {
void *(*get_nbuff)(struct wlan_objmgr_pdev *pdev);
int (*send_nl_bcast)(struct wlan_objmgr_pdev *pdev);
int (*send_nl_unicast)(struct wlan_objmgr_pdev *pdev);
int (*destroy_netlink)(struct wlan_objmgr_pdev *pdev);
};
#ifdef WIN32
#pragma pack(pop, spectral)

Parādīt failu

@@ -211,4 +211,12 @@ void tgt_spectral_register_nl_cb(struct wlan_objmgr_pdev *pdev,
* Return: true for broadcast, false for unicast
*/
bool tgt_spectral_use_nl_bcast(struct wlan_objmgr_pdev *pdev);
/**
* tgt_spectral_deregister_nl_cb() - De-register Netlink callbacks
* @pdev: Pointer to pdev object
*
* Return: void
*/
void tgt_spectral_deregister_nl_cb(struct wlan_objmgr_pdev *pdev);
#endif /* _WLAN_SPECTRAL_TGT_API_H_ */