]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused wpa_sm_get_param() function
authorJouni Malinen <j@w1.fi>
Sat, 5 Apr 2014 16:15:39 +0000 (19:15 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 5 Apr 2014 17:42:12 +0000 (20:42 +0300)
This function was not used anywhere and was not up-to-date with
full tet of parameters.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/rsn_supp/wpa.c
src/rsn_supp/wpa.h

index 77d7991f162035c7207c43f4295f8e02ff211cfe..976ab798da9e65e8888f70a6a25c0a2a4031f27a 100644 (file)
@@ -2395,44 +2395,6 @@ int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
 }
 
 
-/**
- * wpa_sm_get_param - Get WPA state machine parameters
- * @sm: Pointer to WPA state machine data from wpa_sm_init()
- * @param: Parameter field
- * Returns: Parameter value
- */
-unsigned int wpa_sm_get_param(struct wpa_sm *sm, enum wpa_sm_conf_params param)
-{
-       if (sm == NULL)
-               return 0;
-
-       switch (param) {
-       case RSNA_PMK_LIFETIME:
-               return sm->dot11RSNAConfigPMKLifetime;
-       case RSNA_PMK_REAUTH_THRESHOLD:
-               return sm->dot11RSNAConfigPMKReauthThreshold;
-       case RSNA_SA_TIMEOUT:
-               return sm->dot11RSNAConfigSATimeout;
-       case WPA_PARAM_PROTO:
-               return sm->proto;
-       case WPA_PARAM_PAIRWISE:
-               return sm->pairwise_cipher;
-       case WPA_PARAM_GROUP:
-               return sm->group_cipher;
-       case WPA_PARAM_KEY_MGMT:
-               return sm->key_mgmt;
-#ifdef CONFIG_IEEE80211W
-       case WPA_PARAM_MGMT_GROUP:
-               return sm->mgmt_group_cipher;
-#endif /* CONFIG_IEEE80211W */
-       case WPA_PARAM_RSN_ENABLED:
-               return sm->rsn_enabled;
-       default:
-               return 0;
-       }
-}
-
-
 /**
  * wpa_sm_get_status - Get WPA state machine
  * @sm: Pointer to WPA state machine data from wpa_sm_init()
index df1034224b902ea7bfad6f81eb4288968b8adbf9..61d441a9db9201bbefde8685605a78fd0267365b 100644 (file)
@@ -123,8 +123,6 @@ int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen);
 
 int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
                     unsigned int value);
-unsigned int wpa_sm_get_param(struct wpa_sm *sm,
-                             enum wpa_sm_conf_params param);
 
 int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
                      int verbose);
@@ -240,12 +238,6 @@ static inline int wpa_sm_set_param(struct wpa_sm *sm,
        return -1;
 }
 
-static inline unsigned int wpa_sm_get_param(struct wpa_sm *sm,
-                                           enum wpa_sm_conf_params param)
-{
-       return 0;
-}
-
 static inline int wpa_sm_get_status(struct wpa_sm *sm, char *buf,
                                    size_t buflen, int verbose)
 {