summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnson <jjohnson@codeaurora.org>2016-10-05 16:00:23 -0700
committerJeff Johnson <jjohnson@codeaurora.org>2016-10-11 06:24:37 -0700
commite4090f7d8796b6ef23c9afb659bc5ede7b09d144 (patch)
tree356d5f13c1d2fdfa23833f3b0c58543b9095a9e1
parentcd2a079b97702e8b939a5f64510a9b97da927f63 (diff)
qcacld-3.0: Fix -Wmissing-prototypes in wlan_hdd_hostapd
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in wlan_hdd_hostapd. Change-Id: I3b15af337185c28b2066e9d28e9e174cfc5ab76a CRs-Fixed: 1074336
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c46
1 files changed, 29 insertions, 17 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index 5ca394f7fcb3..559a6717f3e9 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -133,8 +133,8 @@ int hdd_sap_context_init(hdd_context_t *hdd_ctx)
*
* Return: None
*/
-void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
- uint8_t channel)
+static void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
+ uint8_t channel)
{
hdd_context_t *pHddCtx = (hdd_context_t *) (pAdapter->pHddCtx);
@@ -169,8 +169,8 @@ void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
*
* Return - None
*/
-void hdd_hostapd_channel_prevent_suspend(hdd_adapter_t *pAdapter,
- uint8_t channel)
+static void hdd_hostapd_channel_prevent_suspend(hdd_adapter_t *pAdapter,
+ uint8_t channel)
{
hdd_context_t *pHddCtx = (hdd_context_t *) (pAdapter->pHddCtx);
hdd_hostapd_state_t *pHostapdState =
@@ -473,9 +473,20 @@ static int hdd_hostapd_set_mac_address(struct net_device *dev, void *addr)
return ret;
}
-void hdd_hostapd_inactivity_timer_cb(void *usrDataForCallback)
+/**
+ * hdd_hostapd_inactivity_timer_cb() - Inactivity timeout handler
+ * @context: Context registered with qdf_mc_timer_init()
+ *
+ * This is the callback function registered with qdf_mc_timer_init()
+ * to handle the AP inactivity timer. The @context registered is the
+ * struct net_device associated with the interface. When this
+ * function is called it means the AP inactivity timer has fired, and
+ * this function in turn indicates the timeout to userspace.
+ */
+
+static void hdd_hostapd_inactivity_timer_cb(void *context)
{
- struct net_device *dev = (struct net_device *)usrDataForCallback;
+ struct net_device *dev = (struct net_device *)context;
uint8_t we_custom_event[64];
union iwreq_data wrqu;
#ifdef DISABLE_CONCURRENCY_AUTOSAVE
@@ -533,8 +544,8 @@ void hdd_hostapd_inactivity_timer_cb(void *usrDataForCallback)
EXIT();
}
-void hdd_clear_all_sta(hdd_adapter_t *pHostapdAdapter,
- void *usrDataForCallback)
+static void hdd_clear_all_sta(hdd_adapter_t *pHostapdAdapter,
+ void *usrDataForCallback)
{
uint8_t staId = 0;
struct net_device *dev;
@@ -729,10 +740,10 @@ QDF_STATUS hdd_chan_change_notify(hdd_adapter_t *adapter,
* Return: Success on sending notifying userspace
*
*/
-QDF_STATUS hdd_send_radar_event(hdd_context_t *hdd_context,
- eSapHddEvent event,
- struct wlan_dfs_info dfs_info,
- struct wireless_dev *wdev)
+static QDF_STATUS hdd_send_radar_event(hdd_context_t *hdd_context,
+ eSapHddEvent event,
+ struct wlan_dfs_info dfs_info,
+ struct wireless_dev *wdev)
{
struct sk_buff *vendor_event;
@@ -6309,10 +6320,11 @@ static void wlan_hdd_add_extra_ie(hdd_adapter_t *pHostapdAdapter,
*
* Return: 0 for success non-zero for failure
*/
-int wlan_hdd_cfg80211_alloc_new_beacon(hdd_adapter_t *pAdapter,
- beacon_data_t **ppBeacon,
- struct cfg80211_beacon_data *params,
- int dtim_period)
+static int
+wlan_hdd_cfg80211_alloc_new_beacon(hdd_adapter_t *pAdapter,
+ beacon_data_t **ppBeacon,
+ struct cfg80211_beacon_data *params,
+ int dtim_period)
{
int size;
beacon_data_t *beacon = NULL;
@@ -6761,7 +6773,7 @@ QDF_STATUS wlan_hdd_config_acs(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter)
*
* Return: 0 for Success or Negative error codes.
*/
-int wlan_hdd_setup_driver_overrides(hdd_adapter_t *ap_adapter)
+static int wlan_hdd_setup_driver_overrides(hdd_adapter_t *ap_adapter)
{
tsap_Config_t *sap_cfg = &ap_adapter->sessionCtx.ap.sapConfig;
hdd_context_t *hdd_ctx = WLAN_HDD_GET_CTX(ap_adapter);