diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2009-02-02 16:56:58 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2009-02-02 16:56:58 +0000 |
| commit | 8216b39e2bcc7f1503480141e85954e2f19f9b6a (patch) | |
| tree | 341c9ca406332e99aa4761949d7fa193494667de /sys/dev | |
| parent | 55a2313ad2db3fea2d14a7c2ae3ec9e6e80d9efa (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ath/ath_hal/ar5212/ar5212.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ath/ath_hal/ar5212/ar5212.h b/sys/dev/ath/ath_hal/ar5212/ar5212.h index c73b68cae8c73..e0edcf651c24f 100644 --- a/sys/dev/ath/ath_hal/ar5212/ar5212.h +++ b/sys/dev/ath/ath_hal/ar5212/ar5212.h @@ -399,10 +399,11 @@ struct ath_hal_5212 { (_chan)->ic_flags &= ~IEEE80211_CHAN_CCK; \ (_chan)->ic_flags |= IEEE80211_CHAN_DYN; \ (_flag) = AH_TRUE; \ - } \ + } else \ + (_flag) = AH_FALSE; \ } while (0) #define RESTORE_CCK(_ah, _chan, _flag) do { \ - if ((IS_2425(_ah) || IS_2417(_ah)) && (_flag)) { \ + if ((_flag) && (IS_2425(_ah) || IS_2417(_ah))) { \ (_chan)->ic_flags &= ~IEEE80211_CHAN_DYN; \ (_chan)->ic_flags |= IEEE80211_CHAN_CCK; \ } \ |
