Lines Matching refs:hc
1070 const struct mwl_hal_channel *hc;
1083 hc = ((unsigned)i < ci->nchannels) ? &ci->channels[i] : NULL;
1095 hc = (i < ci->nchannels) ? &ci->channels[i] : NULL;
1097 hc = NULL;
1098 return hc;
1106 const struct mwl_hal_channel *hc;
1109 hc = findchannel(mh, c);
1110 if (hc == NULL) {
1126 pCmd->PowerLevelList[i++] = htole16(hc->targetPowers[0]);
1128 uint16_t pow = hc->targetPowers[i];
2015 setmaxtxpow(struct mwl_hal_channel *hc, int i, int maxix)
2017 hc->maxTxPow = hc->targetPowers[i];
2019 if (hc->targetPowers[i] > hc->maxTxPow)
2020 hc->maxTxPow = hc->targetPowers[i];
2035 struct mwl_hal_channel *hc;
2044 hc = &ci->channels[j];
2045 hc->freq = f;
2046 hc->ieee = table[i];
2047 memcpy(hc->targetPowers, &table[i], 4);
2048 setmaxtxpow(hc, 1, 4); /* NB: col 1 is the freq, skip*/
2076 struct mwl_hal_channel *hc = &ci->channels[j];
2077 hc->ieee = 1+j;
2078 hc->freq = ieee2mhz(1+j);
2079 memcpy(hc->targetPowers, &table[i], 4);
2080 setmaxtxpow(hc, 0, 4);