Date: Sun, 6 May 2007 20:26:33 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 119367 for review Message-ID: <200705062026.l46KQXYj094622@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=119367 Change 119367 by sam@sam_ebb on 2007/05/06 20:25:33 o correct problem where channel change ioctl didn't do anything if new channel was bss chan o remove duplicate logic Affected files ... .. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#76 edit Differences ... ==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#76 (text+ko) ==== @@ -1677,7 +1677,7 @@ if (ic->ic_opmode == IEEE80211_M_HOSTAP && !check_mode_consistency(c, ic->ic_des_mode)) return EINVAL; - if (ic->ic_state == IEEE80211_S_RUN && c == ic->ic_bsschan) + if (ic->ic_state == IEEE80211_S_RUN && c == ic->ic_curchan) return 0; /* NB: nothing to do */ } ic->ic_des_chan = c; @@ -1763,12 +1763,6 @@ default: /* NB: no static turboG */ break; } - if (ic->ic_opmode == IEEE80211_M_HOSTAP && - !check_mode_consistency(c, ic->ic_des_mode)) - return EINVAL; - ic->ic_des_chan = c; - if (ic->ic_state == IEEE80211_S_RUN && c == ic->ic_bsschan) - return 0; /* NB: nothing to do */ } return setcurchan(ic, c); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705062026.l46KQXYj094622>