source: trunk/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch @ 28093

Last change on this file since 28093 was 28093, checked in by nbd, 5 years ago

mac80211: update to wireless-testing 2011-08-26

File size: 957 bytes
  • drivers/net/wireless/ath/ath9k/main.c

    a b static int ath9k_add_interface(struct ie 
    14911491                } 
    14921492        } 
    14931493 
    1494         if ((ah->opmode == NL80211_IFTYPE_ADHOC) || 
    1495             ((vif->type == NL80211_IFTYPE_ADHOC) && 
    1496              sc->nvifs > 0)) { 
    1497                 ath_err(common, "Cannot create ADHOC interface when other" 
    1498                         " interfaces already exist.\n"); 
    1499                 ret = -EINVAL; 
    1500                 goto out; 
    1501         } 
    1502  
    15031494        ath_dbg(common, ATH_DBG_CONFIG, 
    15041495                "Attach a VIF of type: %d\n", vif->type); 
    15051496 
    static int ath9k_change_interface(struct 
    15251516        mutex_lock(&sc->mutex); 
    15261517        ath9k_ps_wakeup(sc); 
    15271518 
    1528         /* See if new interface type is valid. */ 
    1529         if ((new_type == NL80211_IFTYPE_ADHOC) && 
    1530             (sc->nvifs > 1)) { 
    1531                 ath_err(common, "When using ADHOC, it must be the only" 
    1532                         " interface.\n"); 
    1533                 ret = -EINVAL; 
    1534                 goto out; 
    1535         } 
    1536  
    15371519        if (ath9k_uses_beacons(new_type) && 
    15381520            !ath9k_uses_beacons(vif->type)) { 
    15391521                if (sc->nbcnvifs >= ATH_BCBUF) { 
Note: See TracBrowser for help on using the repository browser.