Remove unused information element parsing data
authorJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 10:07:15 +0000 (12:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Dec 2013 15:18:17 +0000 (17:18 +0200)
These information elements are not really used anywhere in hostapd or
wpa_supplicant nor is there any plan to use them. As such, there is no
need to keep the code here either, so save couple of bytes here.

Signed-hostap: Jouni Malinen <j@w1.fi>

src/common/ieee802_11_common.c
src/common/ieee802_11_common.h

index 304dfc6..809089f 100644 (file)
@@ -189,25 +189,12 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                        elems->supp_rates = pos;
                        elems->supp_rates_len = elen;
                        break;
-               case WLAN_EID_FH_PARAMS:
-                       elems->fh_params = pos;
-                       elems->fh_params_len = elen;
-                       break;
                case WLAN_EID_DS_PARAMS:
                        elems->ds_params = pos;
                        elems->ds_params_len = elen;
                        break;
                case WLAN_EID_CF_PARAMS:
-                       elems->cf_params = pos;
-                       elems->cf_params_len = elen;
-                       break;
                case WLAN_EID_TIM:
-                       elems->tim = pos;
-                       elems->tim_len = elen;
-                       break;
-               case WLAN_EID_IBSS_PARAMS:
-                       elems->ibss_params = pos;
-                       elems->ibss_params_len = elen;
                        break;
                case WLAN_EID_CHALLENGE:
                        elems->challenge = pos;
@@ -232,8 +219,6 @@ ParseRes ieee802_11_parse_elems(const u8 *start, size_t len,
                        elems->rsn_ie_len = elen;
                        break;
                case WLAN_EID_PWR_CAPABILITY:
-                       elems->power_cap = pos;
-                       elems->power_cap_len = elen;
                        break;
                case WLAN_EID_SUPPORTED_CHANNELS:
                        elems->supp_channels = pos;
index c4618b2..b84dd9e 100644 (file)
 struct ieee802_11_elems {
        const u8 *ssid;
        const u8 *supp_rates;
-       const u8 *fh_params;
        const u8 *ds_params;
-       const u8 *cf_params;
-       const u8 *tim;
-       const u8 *ibss_params;
        const u8 *challenge;
        const u8 *erp_info;
        const u8 *ext_supp_rates;
@@ -26,7 +22,6 @@ struct ieee802_11_elems {
        const u8 *wmm; /* WMM Information or Parameter Element */
        const u8 *wmm_tspec;
        const u8 *wps_ie;
-       const u8 *power_cap;
        const u8 *supp_channels;
        const u8 *mdie;
        const u8 *ftie;
@@ -48,11 +43,7 @@ struct ieee802_11_elems {
 
        u8 ssid_len;
        u8 supp_rates_len;
-       u8 fh_params_len;
        u8 ds_params_len;
-       u8 cf_params_len;
-       u8 tim_len;
-       u8 ibss_params_len;
        u8 challenge_len;
        u8 erp_info_len;
        u8 ext_supp_rates_len;
@@ -61,7 +52,6 @@ struct ieee802_11_elems {
        u8 wmm_len; /* 7 = WMM Information; 24 = WMM Parameter */
        u8 wmm_tspec_len;
        u8 wps_ie_len;
-       u8 power_cap_len;
        u8 supp_channels_len;
        u8 mdie_len;
        u8 ftie_len;