Lines Matching refs:config

1011 	ConfigRid config;  member
1637 if (ai->config.len) in readConfigRid()
1655 ai->config = cfg; in readConfigRid()
1661 if (ai->config.authType != AUTH_OPEN && maxencrypt) { in checkThrottle()
1663 if (ai->config.rates[i] > maxencrypt) { in checkThrottle()
1664 ai->config.rates[i] = 0; in checkThrottle()
1678 cfgr = ai->config; in writeConfigRid()
2023 memcpy (ai->config.macAddr, addr->sa_data, dev->addr_len); in airo_set_mac_address()
2190 ai->config.len = 0; in init_airo_card()
2926 if (ai->config.len == 0) {
2948 ai->config.rmode |= RXMODE_NORMALIZED_RSSI;
2952 ai->config.opmode = adhoc ? MODE_STA_IBSS : MODE_STA_ESS;
2953 ai->config.authType = AUTH_OPEN;
2954 ai->config.modulation = MOD_CCK;
2959 ai->config.opmode |= MODE_MIC;
2966 mac[i] = ai->config.macAddr[i];
2973 if ( rates[0] ) memset(ai->config.rates,0,sizeof(ai->config.rates));
2975 ai->config.rates[i] = rates[i];
2981 if ( ai->config.rates[i] == basic_rate ||
2982 !ai->config.rates ) {
2983 ai->config.rates[i] = basic_rate | 0x80;
3872 if ((ai->config.rmode & 0xff) >= RXMODE_RFMON)
3874 ai->config.rmode &= 0xfe00;
3876 ai->config.opmode &= 0xFF00;
3877 ai->config.scanMode = SCANMODE_ACTIVE;
3879 ai->config.opmode |= 0;
3881 ai->config.opmode |= 1;
3883 ai->config.rmode |= RXMODE_RFMON | RXMODE_DISABLE_802_3_HEADER;
3884 ai->config.scanMode = SCANMODE_PASSIVE;
3887 ai->config.rmode |= RXMODE_RFMON_ANYBSS | RXMODE_DISABLE_802_3_HEADER;
3888 ai->config.scanMode = SCANMODE_PASSIVE;
3891 ai->config.rmode |= RXMODE_LANMON;
3910 memset( ai->config.nodeName, 0, 16 );
3913 ai->config.nodeName[j] = line[j];
3922 ai->config.powerSaveMode = POWERSAVE_PSPCAM;
3925 ai->config.powerSaveMode = POWERSAVE_PSP;
3928 ai->config.powerSaveMode = POWERSAVE_CAM;
3937 ai->config.rates[k++] = (u8)v;
3947 ai->config.channelSet = (u16)v;
3955 ai->config.txPower = (u16)v;
3962 ai->config.authType = (u16)AUTH_SHAREDKEY;
3965 ai->config.authType = (u16)AUTH_ENCRYPT;
3968 ai->config.authType = (u16)AUTH_OPEN;
3978 ai->config.longRetryLimit = (u16)v;
3986 ai->config.shortRetryLimit = (u16)v;
3994 ai->config.rtsThres = (u16)v;
4002 ai->config.txLifetime = (u16)v;
4010 ai->config.rxLifetime = (u16)v;
4013 ai->config.txDiversity =
4018 ai->config.rxDiversity =
4029 ai->config.fragThresh = (u16)v;
4034 case 'd': ai->config.modulation=MOD_DEFAULT; ai->need_commit=1; break;
4035 case 'c': ai->config.modulation=MOD_CCK; ai->need_commit=1; break;
4036 case 'm': ai->config.modulation=MOD_MOK; ai->need_commit=1; break;
4043 case 'a': ai->config.preamble=PREAMBLE_AUTO; ai->need_commit=1; break;
4044 case 'l': ai->config.preamble=PREAMBLE_LONG; ai->need_commit=1; break;
4045 case 's': ai->config.preamble=PREAMBLE_SHORT; ai->need_commit=1; break;
4100 (ai->config.opmode & 0xFF) == 0 ? "adhoc" :
4101 (ai->config.opmode & 0xFF) == 1 ? get_rmode(ai->config.rmode):
4102 (ai->config.opmode & 0xFF) == 2 ? "AP" :
4103 (ai->config.opmode & 0xFF) == 3 ? "AP RPTR" : "Error",
4105 ai->config.nodeName,
4106 ai->config.powerSaveMode == 0 ? "CAM" :
4107 ai->config.powerSaveMode == 1 ? "PSP" :
4108 ai->config.powerSaveMode == 2 ? "PSPCAM" : "Error",
4109 (int)ai->config.rates[0],
4110 (int)ai->config.rates[1],
4111 (int)ai->config.rates[2],
4112 (int)ai->config.rates[3],
4113 (int)ai->config.rates[4],
4114 (int)ai->config.rates[5],
4115 (int)ai->config.rates[6],
4116 (int)ai->config.rates[7],
4117 (int)ai->config.channelSet,
4118 (int)ai->config.txPower
4132 (int)ai->config.longRetryLimit,
4133 (int)ai->config.shortRetryLimit,
4134 (int)ai->config.rtsThres,
4135 (int)ai->config.txLifetime,
4136 (int)ai->config.rxLifetime,
4137 ai->config.txDiversity == 1 ? "left" :
4138 ai->config.txDiversity == 2 ? "right" : "both",
4139 ai->config.rxDiversity == 1 ? "left" :
4140 ai->config.rxDiversity == 2 ? "right" : "both",
4141 (int)ai->config.fragThresh,
4142 ai->config.authType == AUTH_ENCRYPT ? "encrypt" :
4143 ai->config.authType == AUTH_SHAREDKEY ? "shared" : "open",
4144 ai->config.modulation == 0 ? "default" :
4145 ai->config.modulation == MOD_CCK ? "cck" :
4146 ai->config.modulation == MOD_MOK ? "mok" : "error",
4147 ai->config.preamble == PREAMBLE_AUTO ? "auto" :
4148 ai->config.preamble == PREAMBLE_LONG ? "long" :
4149 ai->config.preamble == PREAMBLE_SHORT ? "short" : "error"
4571 switch(apriv->config.authType) {
4574 apriv->config.authType = AUTH_OPEN;
4579 apriv->config.authType = AUTH_SHAREDKEY;
4585 apriv->config.authType = AUTH_ENCRYPT;
4589 apriv->config.authType = AUTH_SHAREDKEY;
4757 local->config.channelSet = (u16)(channel - 1);
4777 if ((local->config.opmode & 0xFF) == MODE_STA_ESS)
4778 status_rid.channel = local->config.channelSet;
4944 memset(local->config.nodeName, 0, sizeof(local->config.nodeName));
4945 memcpy(local->config.nodeName, extra, dwrq->length);
4963 strncpy(extra, local->config.nodeName, 16);
5023 memset(local->config.rates, 0, 8);
5025 local->config.rates[i] = cap_rid.supportedRates[i];
5026 if(local->config.rates[i] == brate)
5032 memset(local->config.rates, 0, 8);
5033 local->config.rates[0] = brate;
5057 vwrq->fixed = (local->config.rates[1] == 0);
5080 local->config.rtsThres = rthr;
5098 vwrq->value = local->config.rtsThres;
5124 local->config.fragThresh = (u16)fthr;
5142 vwrq->value = local->config.fragThresh;
5162 if ((local->config.rmode & 0xff) >= RXMODE_RFMON)
5167 local->config.opmode &= 0xFF00;
5168 local->config.opmode |= MODE_STA_IBSS;
5169 local->config.rmode &= 0xfe00;
5170 local->config.scanMode = SCANMODE_ACTIVE;
5174 local->config.opmode &= 0xFF00;
5175 local->config.opmode |= MODE_STA_ESS;
5176 local->config.rmode &= 0xfe00;
5177 local->config.scanMode = SCANMODE_ACTIVE;
5181 local->config.opmode &= 0xFF00;
5182 local->config.opmode |= MODE_AP;
5183 local->config.rmode &= 0xfe00;
5184 local->config.scanMode = SCANMODE_ACTIVE;
5188 local->config.opmode &= 0xFF00;
5189 local->config.opmode |= MODE_AP_RPTR;
5190 local->config.rmode &= 0xfe00;
5191 local->config.scanMode = SCANMODE_ACTIVE;
5195 local->config.opmode &= 0xFF00;
5196 local->config.opmode |= MODE_STA_ESS;
5197 local->config.rmode &= 0xfe00;
5198 local->config.rmode |= RXMODE_RFMON | RXMODE_DISABLE_802_3_HEADER;
5199 local->config.scanMode = SCANMODE_PASSIVE;
5223 switch (local->config.opmode & 0xFF) {
5299 (local->config.authType == AUTH_OPEN)) {
5300 local->config.authType = AUTH_ENCRYPT;
5316 local->config.authType = AUTH_OPEN; // disable encryption
5318 local->config.authType = AUTH_SHAREDKEY; // Only Both
5320 local->config.authType = AUTH_ENCRYPT; // Only Wep
5347 switch(local->config.authType) {
5403 local->config.txPower = vwrq->value;
5423 vwrq->value = local->config.txPower;
5449 local->config.longRetryLimit = vwrq->value;
5451 local->config.shortRetryLimit = vwrq->value;
5454 local->config.longRetryLimit = vwrq->value;
5455 local->config.shortRetryLimit = vwrq->value;
5461 local->config.txLifetime = vwrq->value / 1024;
5485 vwrq->value = (int)local->config.txLifetime * 1024;
5488 vwrq->value = (int)local->config.longRetryLimit;
5491 vwrq->value = (int)local->config.shortRetryLimit;
5492 if((int)local->config.shortRetryLimit != (int)local->config.longRetryLimit)
5622 if ((local->config.rmode & 0xFF) >= RXMODE_RFMON) {
5625 local->config.powerSaveMode = POWERSAVE_CAM;
5626 local->config.rmode &= 0xFF00;
5627 local->config.rmode |= RXMODE_BC_MC_ADDR;
5632 local->config.fastListenDelay = (vwrq->value + 500) / 1024;
5633 local->config.powerSaveMode = POWERSAVE_PSPCAM;
5636 local->config.fastListenInterval = local->config.listenInterval = (vwrq->value + 500) / 1024;
5637 local->config.powerSaveMode = POWERSAVE_PSPCAM;
5642 if ((local->config.rmode & 0xFF) >= RXMODE_RFMON) {
5645 local->config.rmode &= 0xFF00;
5646 local->config.rmode |= RXMODE_ADDR;
5650 if ((local->config.rmode & 0xFF) >= RXMODE_RFMON) {
5653 local->config.rmode &= 0xFF00;
5654 local->config.rmode |= RXMODE_BC_MC_ADDR;
5679 mode = local->config.powerSaveMode;
5683 vwrq->value = (int)local->config.fastListenDelay * 1024;
5686 vwrq->value = (int)local->config.fastListenInterval * 1024;
5689 if ((local->config.rmode & 0xFF) == RXMODE_ADDR)
5709 local->config.rssiThreshold = vwrq->disabled ? RSSI_DEFAULT : vwrq->value;
5727 vwrq->value = local->config.rssiThreshold;
6728 case AIROPCFG: ai->config.len = 0;