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

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

ath9k: merge a few more pending fixes, including a fix for the bogus WARN_ON in pci.c and fixes for Rx DMA stop issues

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

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