Merge whitespace changes made on the DFS branch

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2869 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2007-11-20 18:19:55 +00:00
parent cf73167868
commit 6b697f9589
4 changed files with 202 additions and 202 deletions

File diff suppressed because it is too large Load Diff

View File

@ -309,7 +309,7 @@ ieee80211_beacon_update(struct ieee80211_node *ni,
/* NB: ic_bsschan is in the DSPARMS beacon IE, so must set this
* prior to the beacon re-init, below. */
if (c == NULL) {
/* Requested channel invalid; drop the channel switch
/* Requested channel invalid; drop the channel switch
* announcement and do nothing. */
IEEE80211_DPRINTF(vap, IEEE80211_MSG_DOTH,
"%s: find channel failure\n", __func__);
@ -326,7 +326,7 @@ ieee80211_beacon_update(struct ieee80211_node *ni,
vap->iv_flags &= ~IEEE80211_F_CHANSWITCH;
ic->ic_flags &= ~IEEE80211_F_CHANSWITCH;
/* NB: Only for the first VAP to get here, and when we have a
/* NB: Only for the first VAP to get here, and when we have a
* valid channel to which to change. */
if (c && (ic->ic_curchan != c)) {
ic->ic_curchan = c;

View File

@ -1457,41 +1457,41 @@ __ieee80211_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int
/* In WDS mode, allocate and initialize peer node. */
if (vap->iv_opmode == IEEE80211_M_WDS) {
/* XXX: This is horribly non-atomic. */
struct ieee80211_node *wds_ni =
ieee80211_find_node(&ic->ic_sta,
struct ieee80211_node *wds_ni =
ieee80211_find_node(&ic->ic_sta,
vap->wds_mac);
if (wds_ni == NULL) {
wds_ni = ieee80211_alloc_node_table(
vap,
vap,
vap->wds_mac);
if (wds_ni != NULL)
ieee80211_add_wds_addr(
&ic->ic_sta,
wds_ni,
vap->wds_mac,
&ic->ic_sta,
wds_ni,
vap->wds_mac,
1);
else
IEEE80211_DPRINTF(
vap,
vap,
IEEE80211_MSG_NODE,
"%s: Unable to "
"allocate node for "
"WDS: %s\n",
"WDS: %s\n",
__func__,
ether_sprintf(
vap->wds_mac)
);
}
if (wds_ni != NULL) {
ieee80211_node_authorize(wds_ni);
wds_ni->ni_chan =
wds_ni->ni_chan =
vap->iv_bss->ni_chan;
wds_ni->ni_capinfo =
wds_ni->ni_capinfo =
ni->ni_capinfo;
wds_ni->ni_associd = 1;
wds_ni->ni_ath_flags =
wds_ni->ni_ath_flags =
vap->iv_ath_cap;
}
}

View File

@ -995,7 +995,7 @@ ieee80211_scan_dfs_action(struct ieee80211vap *vap,
int chanStart, n = 0;
u_int32_t curChanFlags;
/* Only pick a random channel if we're in RUN state. In scan
/* Only pick a random channel if we're in RUN state. In scan
* state, we don't need to pick a channel
*/
if (vap->iv_state == IEEE80211_S_RUN) {