Changeset 3476
- Timestamp:
- 04/09/08 05:24:05 (5 months ago)
- Files:
-
- madwifi/trunk/ath/if_ath.c (modified) (1 diff)
- madwifi/trunk/net80211/ieee80211.c (modified) (1 diff)
- madwifi/trunk/net80211/ieee80211_ioctl.h (modified) (1 diff)
- madwifi/trunk/tools/man/wlanconfig.8 (modified) (2 diffs)
- madwifi/trunk/tools/wlanconfig.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/trunk/ath/if_ath.c
r3456 r3476 1228 1228 if (sc->sc_nstavaps != 0) /* only one sta regardless */ 1229 1229 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; 1233 1236 sc->sc_nostabeacons = 1; 1234 1237 ic_opmode = IEEE80211_M_HOSTAP; /* Run with chip in AP mode */ 1235 } else 1238 } else { 1236 1239 ic_opmode = opmode; 1240 } 1237 1241 break; 1238 1242 case IEEE80211_M_IBSS: madwifi/trunk/net80211/ieee80211.c
r3412 r3476 455 455 case IEEE80211_M_STA: 456 456 /* WDS/Repeater */ 457 if (flags & IEEE80211_ NO_STABEACONS)457 if (flags & IEEE80211_USE_SW_BEACON_TIMERS) 458 458 vap->iv_flags_ext |= IEEE80211_FEXT_SWBMISS; 459 459 break; madwifi/trunk/net80211/ieee80211_ioctl.h
r3367 r3476 659 659 u_int16_t icp_opmode; /* operating mode */ 660 660 u_int16_t icp_flags; /* see below */ 661 #define IEEE80211_CLONE_BSSID 0x0001/* allocate unique mac/bssid */662 #define IEEE80211_ NO_STABEACONS 0x0002/* Do not setup the station beacon timers */661 #define IEEE80211_CLONE_BSSID 0x0001 /* allocate unique mac/bssid */ 662 #define IEEE80211_USE_SW_BEACON_TIMERS 0x0002 /* Do not setup the station beacon timers */ 663 663 }; 664 664 madwifi/trunk/tools/man/wlanconfig.8
r2513 r3476 19 19 .SH "ARGUMENTS" 20 20 .TP 21 .B <vap> create [nounit] wlandev <base device> wlanmode <mode> [ bssid|-bssid] [nosbeacon]21 .B <vap> create [nounit] wlandev <base device> wlanmode <mode> [uniquebssid] 22 22 Create the interface <vap> using the specified <base device> and <mode>. <vap> can either be a full interface name (e.g. 'ath0'), or just the suffix (e.g. 'ath'), in which case, the kernel will automatically append the next vacant integer. [nounit] will turn off the automatic integer increments. 23 23 .TP … … 50 50 .SH "OPTIONS" 51 51 .TP 52 .B uniquebssid 53 Create the VAP using a new unique MAC address, different from the underlying device. 54 .TP 52 55 .B bssid 53 Create the VAP using a different MAC address from the underlying device.56 Synonym for uniquebssid, for backward compatibility. 54 57 .TP 55 58 .B \-bssid 56 Create the VAP using the MAC address of the underlying device.57 .TP 59 Ignored for backward compatibility. 60 .TP 58 61 .B nosbeacon 59 When both station VAPS and AP VAPs coexist, the station should be created with the nosbeacon flag set in order to disable the use of hardware beacon times for the station.62 Ignored for backward compatibility. 60 63 .PP 61 64 .SH "LIST ITEMS" madwifi/trunk/tools/wlanconfig.c
r3244 r3476 285 285 { 286 286 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"); 288 288 fprintf(stderr, "usage: wlanconfig athX destroy\n"); 289 289 fprintf(stderr, "usage: wlanconfig athX list [active|ap|caps|chan|freq|keys|scan|sta|wme]\n"); … … 319 319 320 320 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"); 322 323 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 } 325 331 if (flag == 0) 326 332 errx(1, "unknown create option %s", s);
