Show
Ignore:
Timestamp:
04/09/08 05:24:05 (4 years ago)
Author:
mtaylor
Message:

This patch cleans up the VAP creation API.

The need to use software instead of hardware for beacon timers in AP+STA mode (aka nosbeacon) is now just determined in software, as we always knew whether or not to enable this.

The confusing bssid and -bssid parameters are now deprecated.

The "uniquebssid" flag is equivalent to "bssid" and can be used to force IEEE80211_CLONE_BSSID flag. If this is not specified, then the BSSID used will be the next unused BSSID in the sequence, which could very well be the parent device's MAC address.

"uniquebssid" equates directly to IEEE80211_CLONE_BSSID" flag therefore.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/trunk/ath/if_ath.c

    r3456 r3476  
    12281228                if (sc->sc_nstavaps != 0)  /* only one sta regardless */ 
    12291229                        return NULL; 
    1230                 if ((sc->sc_nvaps != 0) && (!(flags & IEEE80211_NO_STABEACONS))) 
    1231                         return NULL;   /* If using station beacons, must first up */ 
    1232                 if (flags & IEEE80211_NO_STABEACONS) { 
     1230                /* If we already have an AP VAP, we can still add a station VAP 
     1231                 * but we must not attempt to re-use the hardware beacon timers 
     1232                 * since the AP is already using them, and we must stay in AP  
     1233                 * opmode. */ 
     1234                if (sc->sc_nvaps != 0) { 
     1235                        flags |= IEEE80211_USE_SW_BEACON_TIMERS; 
    12331236                        sc->sc_nostabeacons = 1; 
    12341237                        ic_opmode = IEEE80211_M_HOSTAP; /* Run with chip in AP mode */ 
    1235                 } else 
     1238                } else { 
    12361239                        ic_opmode = opmode; 
     1240                } 
    12371241                break; 
    12381242        case IEEE80211_M_IBSS: