source: branches/backfire/package/mac80211/patches/410-ath9k_allow_adhoc_and_ap.patch @ 28388

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

mac80211: update to latest version from trunk

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

    a b static int ath9k_add_interface(struct ie 
    14731473                } 
    14741474        } 
    14751475 
    1476         if ((ah->opmode == NL80211_IFTYPE_ADHOC) || 
    1477             ((vif->type == NL80211_IFTYPE_ADHOC) && 
    1478              sc->nvifs > 0)) { 
    1479                 ath_err(common, "Cannot create ADHOC interface when other" 
    1480                         " interfaces already exist.\n"); 
    1481                 ret = -EINVAL; 
    1482                 goto out; 
    1483         } 
    1484  
    14851476        ath_dbg(common, ATH_DBG_CONFIG, 
    14861477                "Attach a VIF of type: %d\n", vif->type); 
    14871478 
    static int ath9k_change_interface(struct 
    15071498        mutex_lock(&sc->mutex); 
    15081499        ath9k_ps_wakeup(sc); 
    15091500 
    1510         /* See if new interface type is valid. */ 
    1511         if ((new_type == NL80211_IFTYPE_ADHOC) && 
    1512             (sc->nvifs > 1)) { 
    1513                 ath_err(common, "When using ADHOC, it must be the only" 
    1514                         " interface.\n"); 
    1515                 ret = -EINVAL; 
    1516                 goto out; 
    1517         } 
    1518  
    15191501        if (ath9k_uses_beacons(new_type) && 
    15201502            !ath9k_uses_beacons(vif->type)) { 
    15211503                if (sc->nbcnvifs >= ATH_BCBUF) { 
Note: See TracBrowser for help on using the repository browser.