Lines Matching defs:hc
978 mwl_mapchan(MWL_HAL_CHANNEL *hc, const struct ieee80211_channel *chan)
980 hc->channel = chan->ic_ieee;
982 *(uint32_t *)&hc->channelFlags = 0;
984 hc->channelFlags.FreqBand = MWL_FREQ_BAND_2DOT4GHZ;
986 hc->channelFlags.FreqBand = MWL_FREQ_BAND_5GHZ;
988 hc->channelFlags.ChnlWidth = MWL_CH_40_MHz_WIDTH;
990 hc->channelFlags.ExtChnlOffset = MWL_EXT_CH_ABOVE_CTRL_CH;
992 hc->channelFlags.ExtChnlOffset = MWL_EXT_CH_BELOW_CTRL_CH;
994 hc->channelFlags.ChnlWidth = MWL_CH_20_MHz_WIDTH;
4463 const struct mwl_hal_channel *hc = &ci->channels[i];
4464 if (hc->ieee == ieee)
4465 return hc;
4481 const struct mwl_hal_channel *hc;
4500 hc = findhalchannel(ci, c->ic_ieee);
4501 if (hc != NULL) {
4502 if (c->ic_maxpower > 2*hc->maxTxPow)
4503 c->ic_maxpower = 2*hc->maxTxPow;
4511 hc = findhalchannel(ci, c->ic_extieee);
4512 if (hc != NULL) {
4513 if (c->ic_maxpower > 2*hc->maxTxPow)
4514 c->ic_maxpower = 2*hc->maxTxPow;
4564 const struct mwl_hal_channel *hc;
4575 hc = &ci->channels[i];
4576 extc = findchannel(chans, *nchans, hc->freq+20,
4581 addchan(c, hc->freq, flags | IEEE80211_CHAN_HT40U,
4582 hc->ieee, hc->maxTxPow);
4588 extc->ic_ieee, hc->maxTxPow);
4589 c->ic_extieee = hc->ieee;
4605 const struct mwl_hal_channel *hc;
4607 hc = &ci->channels[i];
4610 addchan(c, hc->freq, flags, hc->ieee, hc->maxTxPow);