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
This commit is contained in:
@@ -133,7 +133,7 @@ int hdd_sap_context_init(hdd_context_t *hdd_ctx)
|
||||
*
|
||||
* Return: None
|
||||
*/
|
||||
void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
|
||||
static void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
|
||||
uint8_t channel)
|
||||
{
|
||||
|
||||
@@ -169,7 +169,7 @@ void hdd_hostapd_channel_allow_suspend(hdd_adapter_t *pAdapter,
|
||||
*
|
||||
* Return - None
|
||||
*/
|
||||
void hdd_hostapd_channel_prevent_suspend(hdd_adapter_t *pAdapter,
|
||||
static void hdd_hostapd_channel_prevent_suspend(hdd_adapter_t *pAdapter,
|
||||
uint8_t channel)
|
||||
{
|
||||
hdd_context_t *pHddCtx = (hdd_context_t *) (pAdapter->pHddCtx);
|
||||
@@ -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,7 +544,7 @@ void hdd_hostapd_inactivity_timer_cb(void *usrDataForCallback)
|
||||
EXIT();
|
||||
}
|
||||
|
||||
void hdd_clear_all_sta(hdd_adapter_t *pHostapdAdapter,
|
||||
static void hdd_clear_all_sta(hdd_adapter_t *pHostapdAdapter,
|
||||
void *usrDataForCallback)
|
||||
{
|
||||
uint8_t staId = 0;
|
||||
@@ -729,7 +740,7 @@ 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,
|
||||
static QDF_STATUS hdd_send_radar_event(hdd_context_t *hdd_context,
|
||||
eSapHddEvent event,
|
||||
struct wlan_dfs_info dfs_info,
|
||||
struct wireless_dev *wdev)
|
||||
@@ -6309,7 +6320,8 @@ 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,
|
||||
static int
|
||||
wlan_hdd_cfg80211_alloc_new_beacon(hdd_adapter_t *pAdapter,
|
||||
beacon_data_t **ppBeacon,
|
||||
struct cfg80211_beacon_data *params,
|
||||
int dtim_period)
|
||||
@@ -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);
|
||||
|
Reference in New Issue
Block a user