* Demote any supplied 11g channel to 11b. There should * always be an 11b channel but we check anyway... */
| 790 | * always be an 11b channel but we check anyway... |
| 791 | */ |
| 792 | static struct ieee80211_channel * |
| 793 | demote11b(struct ieee80211vap *vap, struct ieee80211_channel *chan) |
| 794 | { |
| 795 | struct ieee80211_channel *c; |
| 796 | |
| 797 | if (IEEE80211_IS_CHAN_ANYG(chan) && |
| 798 | vap->iv_des_mode == IEEE80211_MODE_AUTO) { |
| 799 | c = ieee80211_find_channel(vap->iv_ic, chan->ic_freq, |
| 800 | (chan->ic_flags &~ (IEEE80211_CHAN_PUREG | IEEE80211_CHAN_G)) | |
| 801 | IEEE80211_CHAN_B); |
| 802 | if (c != NULL) |
| 803 | chan = c; |
| 804 | } |
| 805 | return chan; |
| 806 | } |
| 807 | |
| 808 | static int |
| 809 | maxrate(const struct ieee80211_scan_entry *se) |
no test coverage detected