source: branches/backfire/package/hostapd/patches/370-basic_rates.patch @ 21354

Last change on this file since 21354 was 21354, checked in by nbd, 7 years ago

[backfire] backport mac80211 and hostapd from trunk

File size: 2.0 KB
  • src/ap/hostapd.c

    a b int hostapd_setup_interface_complete(str 
    715715                } 
    716716        } 
    717717 
     718        if (iface->current_mode) { 
     719                if (hostapd_prepare_rates(hapd, iface->current_mode)) { 
     720                        wpa_printf(MSG_ERROR, "Failed to prepare rates table."); 
     721                        hostapd_logger(hapd, NULL, HOSTAPD_MODULE_IEEE80211, 
     722                                           HOSTAPD_LEVEL_WARNING, 
     723                                           "Failed to prepare rates table."); 
     724                        return -1; 
     725                } 
     726        } 
     727 
    718728        if (hapd->iconf->rts_threshold > -1 && 
    719729            hostapd_set_rts(hapd, hapd->iconf->rts_threshold)) { 
    720730                wpa_printf(MSG_ERROR, "Could not set RTS threshold for " 
  • src/ap/hw_features.c

    a b int hostapd_get_hw_features(struct hosta 
    101101} 
    102102 
    103103 
    104 static int hostapd_prepare_rates(struct hostapd_data *hapd, 
    105                                 struct hostapd_hw_modes *mode) 
     104int hostapd_prepare_rates(struct hostapd_data *hapd, 
     105                          struct hostapd_hw_modes *mode) 
    106106{ 
    107107        int i, num_basic_rates = 0; 
    108108        int basic_rates_a[] = { 60, 120, 240, -1 }; 
    int hostapd_select_hw_mode(struct hostap 
    668668                return -1; 
    669669        } 
    670670 
    671         if (hostapd_prepare_rates(iface->bss[0], iface->current_mode)) { 
    672                 wpa_printf(MSG_ERROR, "Failed to prepare rates table."); 
    673                 hostapd_logger(iface->bss[0], NULL, HOSTAPD_MODULE_IEEE80211, 
    674                                            HOSTAPD_LEVEL_WARNING, 
    675                                            "Failed to prepare rates table."); 
    676                 return -1; 
    677         } 
    678  
    679671        return 0; 
    680672} 
    681673 
  • src/ap/hw_features.h

    a b const char * hostapd_hw_mode_txt(int mod 
    2525int hostapd_hw_get_freq(struct hostapd_data *hapd, int chan); 
    2626int hostapd_hw_get_channel(struct hostapd_data *hapd, int freq); 
    2727int hostapd_check_ht_capab(struct hostapd_iface *iface); 
     28int hostapd_prepare_rates(struct hostapd_data *hapd, 
     29                          struct hostapd_hw_modes *mode); 
    2830#else /* NEED_AP_MLME */ 
    2931static inline void 
    3032hostapd_free_hw_features(struct hostapd_hw_modes *hw_features, 
    static inline int hostapd_check_ht_capab 
    5658{ 
    5759        return 0; 
    5860} 
     61static inline int hostapd_prepare_rates(struct hostapd_data *hapd, 
     62                                        struct hostapd_hw_modes *mode) 
     63{ 
     64        return 0; 
     65} 
    5966 
    6067#endif /* NEED_AP_MLME */ 
    6168 
Note: See TracBrowser for help on using the repository browser.