From 590aeb60c8b01f7d73366f5a0a37207101a2800a Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Thu, 5 Jan 2017 14:23:08 -0800 Subject: [PATCH] qcacmn: Properly export wlan_cfg API Currently some of the public functions in wlan_cfg.c do not have their prototypes exposed in a header file. This causes compilation warnings when the driver is compiled with the -Wmissing-prototypes switch. Fix these issues by adding the prototypes to wlan_cfg.h. Change-Id: I914b811fdd8d48c9570bd240f0fdc8192b21c2e8 CRs-Fixed: 1108113 --- wlan_cfg/wlan_cfg.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/wlan_cfg/wlan_cfg.h b/wlan_cfg/wlan_cfg.h index de5d89cb54bf..e36c74cba2a1 100644 --- a/wlan_cfg/wlan_cfg.h +++ b/wlan_cfg/wlan_cfg.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved. + * Copyright (c) 2013-2017 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -62,6 +62,17 @@ struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_attach(void); */ void wlan_cfg_pdev_detach(struct wlan_cfg_dp_pdev_ctxt *wlan_cfg_pdev_ctx); +void wlan_cfg_set_num_contexts(struct wlan_cfg_dp_soc_ctxt *cfg, int num); +void wlan_cfg_set_tx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, + int context, int mask); +void wlan_cfg_set_rx_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, + int context, int mask); +void wlan_cfg_set_rx_mon_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, + int context, int mask); +void wlan_cfg_set_ce_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, + int context, int mask); +void wlan_cfg_set_rxbuf_ring_mask(struct wlan_cfg_dp_soc_ctxt *cfg, int context, + int mask); /** * wlan_cfg_get_num_contexts() Number of interrupt contexts to be registered * @wlan_cfg_ctx - Configuration Handle @@ -220,6 +231,14 @@ int wlan_cfg_get_num_tx_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx); */ int wlan_cfg_get_num_tx_ext_desc(struct wlan_cfg_dp_soc_ctxt *wlan_cfg_ctx); +/* + * wlan_cfg_max_peer_id() - Get maximum peer ID + * @cfg: Configuration Handle + * + * Return: maximum peer ID + */ +uint32_t wlan_cfg_max_peer_id(struct wlan_cfg_dp_soc_ctxt *cfg); + /* * wlan_cfg_get_dma_mon_buf_ring_size() - Return Size of monitor buffer ring * @wlan_cfg_pdev_ctx