source: branches/backfire/package/mac80211/patches/404-ath_regd_optional.patch @ 21649

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

backport the latest version of the mac80211 package to backfire. includes fixes for wpa key handling, throughput issues, etc.

File size: 1.4 KB
  • drivers/net/wireless/ath/regd.c

    a b  
    1818#include <net/cfg80211.h> 
    1919#include <net/mac80211.h> 
    2020#include "regd.h" 
     21 
     22#ifndef ATH_USER_REGD 
     23 
    2124#include "regd_common.h" 
    2225 
    2326/* 
    u32 ath_regd_get_band_ctl(struct ath_reg 
    587590        } 
    588591} 
    589592EXPORT_SYMBOL(ath_regd_get_band_ctl); 
     593 
     594#endif 
  • drivers/net/wireless/ath/regd.h

    a b enum CountryCode { 
    250250        CTRY_BELGIUM2 = 5002 
    251251}; 
    252252 
     253#ifdef ATH_USER_REGD 
     254 
     255static inline bool 
     256ath_is_world_regd(struct ath_regulatory *reg) 
     257{ 
     258        return true; 
     259} 
     260 
     261static inline int 
     262ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy, 
     263              int (*reg_notifier)(struct wiphy *wiphy, 
     264              struct regulatory_request *request)) 
     265{ 
     266        return 0; 
     267} 
     268 
     269 
     270static inline u32 
     271ath_regd_get_band_ctl(struct ath_regulatory *reg, 
     272                      enum ieee80211_band band) 
     273{ 
     274        return SD_NO_CTL; 
     275} 
     276 
     277static inline int 
     278ath_reg_notifier_apply(struct wiphy *wiphy, 
     279                       struct regulatory_request *request, 
     280                       struct ath_regulatory *reg) 
     281{ 
     282        return 0; 
     283} 
     284 
     285 
     286#else 
     287 
    253288bool ath_is_world_regd(struct ath_regulatory *reg); 
    254289int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy, 
    255290                  int (*reg_notifier)(struct wiphy *wiphy, 
    int ath_reg_notifier_apply(struct wiphy  
    261296                           struct ath_regulatory *reg); 
    262297 
    263298#endif 
     299 
     300#endif 
Note: See TracBrowser for help on using the repository browser.