Lines Matching defs:hc

1311 		struct mwl_hal_channel *hc = &ci->channels[j];
1312 hc->ieee = 1+j;
1313 hc->freq = ieee2mhz(1+j);
1314 (void) memcpy(hc->targetPowers, &table[i], 4);
1315 setmaxtxpow(hc, 0, 4);
1335 struct mwl_hal_channel *hc;
1344 hc = &ci->channels[j];
1345 hc->freq = (uint16_t)f;
1346 hc->ieee = table[i];
1347 (void) memcpy(hc->targetPowers, &table[i], 4);
1348 setmaxtxpow(hc, 1, 4); /* NB: col 1 is the freq, skip */
1360 setmaxtxpow(struct mwl_hal_channel *hc, int i, int maxix)
1362 hc->maxTxPow = hc->targetPowers[i];
1364 if (hc->targetPowers[i] > hc->maxTxPow)
1365 hc->maxTxPow = hc->targetPowers[i];
1484 const struct mwl_hal_channel *hc;
1495 hc = &ci->channels[i];
1496 extc = findchannel(chans, *nchans, hc->freq+20,
1501 addchan(c, hc->freq, flags | IEEE80211_CHAN_HT40U,
1502 hc->ieee, hc->maxTxPow);
1508 extc->ic_ieee, hc->maxTxPow);
1509 c->ic_extieee = hc->ieee;
1525 const struct mwl_hal_channel *hc;
1527 hc = &ci->channels[i];
1530 addchan(c, hc->freq, flags, hc->ieee, hc->maxTxPow);
1860 const struct mwl_hal_channel *hc;
1863 hc = findhalchannel(sc, c);
1864 if (hc == NULL) {
1878 pCmd->PowerLevelList[i++] = LE_16(hc->targetPowers[0]);
1880 uint16_t pow = hc->targetPowers[i];
2488 mwl_mapchan(MWL_HAL_CHANNEL *hc, const struct mwl_channel *chan)
2490 hc->channel = chan->ic_ieee;
2492 *(uint32_t *)&hc->channelFlags = 0;
2494 hc->channelFlags.FreqBand = MWL_FREQ_BAND_2DOT4GHZ;
2496 hc->channelFlags.FreqBand = MWL_FREQ_BAND_5GHZ;
2498 hc->channelFlags.ChnlWidth = MWL_CH_40_MHz_WIDTH;
2500 hc->channelFlags.ExtChnlOffset =
2503 hc->channelFlags.ExtChnlOffset =
2506 hc->channelFlags.ChnlWidth = MWL_CH_20_MHz_WIDTH;
2579 const struct mwl_hal_channel *hc;
2593 hc = ((unsigned)i < ci->nchannels) ? &ci->channels[i] : NULL;
2606 hc = (i < ci->nchannels) ? &ci->channels[i] : NULL;
2608 hc = NULL;
2609 return (hc);