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/tools/wlanconfig.c

    r3244 r3476  
    285285{ 
    286286        fprintf(stderr, "usage: wlanconfig athX create [nounit] wlandev wifiY\n"); 
    287         fprintf(stderr, "            wlanmode [sta|adhoc|ap|monitor|wds|ahdemo] [bssid | -bssid] [nosbeacon]\n"); 
     287        fprintf(stderr, "            wlanmode [sta|adhoc|ap|monitor|wds|ahdemo] [uniquebssid]\n"); 
    288288        fprintf(stderr, "usage: wlanconfig athX destroy\n"); 
    289289        fprintf(stderr, "usage: wlanconfig athX list [active|ap|caps|chan|freq|keys|scan|sta|wme]\n"); 
     
    319319 
    320320        cp = (s[0] == '-' ? s + 1 : s); 
    321         if (strcmp(cp, "bssid") == 0) 
     321        if (strcmp(cp, "bssid") == 0) { 
     322                printf("WARNING: the -bssid and bssid flags are deprecated.\n"); 
    322323                flag = IEEE80211_CLONE_BSSID; 
    323         if (strcmp(cp, "nosbeacon") == 0) 
    324                 flag |= IEEE80211_NO_STABEACONS; 
     324        } 
     325        if (strcmp(cp, "uniquebssid") == 0) 
     326                flag = IEEE80211_CLONE_BSSID; 
     327        if (strcmp(cp, "nosbeacon") == 0) { 
     328                printf("WARNING: the nosbeacon flag has been deprecated.\n"); 
     329                return 0; /* deprecated but skip */ 
     330        } 
    325331        if (flag == 0) 
    326332                errx(1, "unknown create option %s", s);