From 1887be4fa7049fee4da0b57867fd0f49a8f1565b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 20 Jun 2015 16:05:54 +0300 Subject: [PATCH] Make check_20mhz_bss() static This is not used outside this file anymore, so there is no need to export the symbol either. Signed-off-by: Jouni Malinen --- src/common/hw_features_common.c | 3 ++- src/common/hw_features_common.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/hw_features_common.c b/src/common/hw_features_common.c index e61f82421..6d9bf6c21 100644 --- a/src/common/hw_features_common.c +++ b/src/common/hw_features_common.c @@ -237,7 +237,8 @@ int check_40mhz_5g(struct hostapd_hw_modes *mode, } -int check_20mhz_bss(struct wpa_scan_res *bss, int pri_freq, int start, int end) +static int check_20mhz_bss(struct wpa_scan_res *bss, int pri_freq, int start, + int end) { struct ieee802_11_elems elems; struct ieee80211_ht_operation *oper; diff --git a/src/common/hw_features_common.h b/src/common/hw_features_common.h index 7f43d00c5..7360b4e3e 100644 --- a/src/common/hw_features_common.h +++ b/src/common/hw_features_common.h @@ -26,7 +26,6 @@ void get_pri_sec_chan(struct wpa_scan_res *bss, int *pri_chan, int *sec_chan); int check_40mhz_5g(struct hostapd_hw_modes *mode, struct wpa_scan_results *scan_res, int pri_chan, int sec_chan); -int check_20mhz_bss(struct wpa_scan_res *bss, int pri_freq, int start, int end); int check_40mhz_2g4(struct hostapd_hw_modes *mode, struct wpa_scan_results *scan_res, int pri_chan, int sec_chan);