Lines Matching refs:wrqu
153 union iwreq_data *wrqu = (union iwreq_data *)cmdObj->buffer1;
172 int freq = wrqu->freq.m;
178 int div = WEXT_FREQ_KHZ_CONVERT - wrqu->freq.e;
226 wrqu->freq.m = pParam->content.siteMgrCurrentChannel;
227 wrqu->freq.e = 3;
228 wrqu->freq.i = 0;
239 switch (wrqu->mode)
277 wrqu->mode = IW_MODE_AUTO;
280 wrqu->mode = IW_MODE_ADHOC;
283 wrqu->mode = IW_MODE_INFRA;
303 pParam->content.roamingConfigBuffer.roamingMngrThresholdsConfig.lowRssiThreshold = wrqu->param.value;
324 wrqu->param.value = pParam->content.roamingConfigBuffer.roamingMngrThresholdsConfig.lowRssiThreshold;
325 wrqu->param.disabled = (wrqu->param.value == 0);
326 wrqu->param.fixed = 1;
502 if (MAC_NULL (wrqu->ap_addr.sa_data))
509 MAC_COPY (pParam->content.siteMgrDesiredBSSID, wrqu->ap_addr.sa_data);
537 MAC_COPY (wrqu->ap_addr.sa_data, "\x00\x00\x00\x00\x00\x00");
542 MAC_COPY (wrqu->ap_addr.sa_data, pParam->content.siteMgrDesiredBSSID);
591 if (wrqu->data.pointer)
593 if ( copy_from_user( &pScanReq, wrqu->data.pointer, sizeof(pScanReq)) )
599 if (wrqu->data.flags & IW_SCAN_THIS_ESSID)
646 end_buf = (char *)(cmdObj->buffer2 + wrqu->data.length);
696 if(wrqu->data.flags)
698 for (i=0; i<wrqu->data.flags; i++)
864 wrqu->data.length = event - ((char *)cmdObj->buffer2);
867 wrqu->data.flags = 0;
871 wrqu->data.flags = i;
887 if (wrqu->essid.flags & SET_SSID_WITHOUT_SUPPL)
888 wrqu->essid.flags &= ~SET_SSID_WITHOUT_SUPPL;
896 if (wrqu->essid.flags == 0)
904 length = wrqu->essid.length - 1;
907 while (length < wrqu->essid.length && extra[length])
937 wrqu->essid.flags = 1;
945 wrqu->essid.length = pParam->content.siteMgrCurrentSSID.len;
953 if (wrqu->data.length > IW_ESSID_MAX_SIZE) {
957 os_memoryCopy(pCmdInterpret->hOs, pCmdInterpret->nickName, cmdObj->buffer2, wrqu->data.length);
981 if (wrqu->rts.disabled)
984 pParam->content.halCtrlRtsThreshold = wrqu->rts.value;
999 wrqu->rts.value = pParam->content.halCtrlRtsThreshold;
1000 wrqu->rts.fixed = 1;
1009 pParam->content.halCtrlFragThreshold = ((wrqu->frag.value+1)>>1) << 1; /* make it always even */
1025 wrqu->rts.value = pParam->content.halCtrlFragThreshold;
1026 wrqu->rts.fixed = 1;
1033 if (wrqu->txpower.disabled == 1)
1040 pParam->content.desiredTxPower = wrqu->txpower.value;
1054 wrqu->txpower.flags = IW_TXPOW_RELATIVE | IW_TXPOW_RANGE;
1055 wrqu->txpower.disabled = 0;
1056 wrqu->txpower.fixed = 0;
1057 wrqu->txpower.value = pParam->content.desiredTxPower;
1067 index = (wrqu->encoding.flags & IW_ENCODE_INDEX);
1082 if (wrqu->data.flags & IW_ENCODE_DISABLED)
1089 if (wrqu->data.length)
1091 os_memoryCopy(pCmdInterpret->hOs, &pParam->content.rsnOsKey.KeyMaterial, cmdObj->buffer2, wrqu->data.length);
1092 pParam->content.rsnOsKey.KeyLength = wrqu->data.length;
1114 wrqu->data.length = 0;
1118 index = (wrqu->encoding.flags & IW_ENCODE_INDEX);
1127 wrqu->data.flags = (index+1);
1139 wrqu->data.flags |= IW_ENCODE_ENABLED;
1140 wrqu->data.length = pParam->content.pRsnKey->encLen;
1141 os_memoryCopy(pCmdInterpret->hOs,extra, &pParam->content.pRsnKey->encKey,wrqu->data.length);
1159 wrqu->data.flags |= IW_ENCODE_OPEN;
1161 wrqu->data.flags |= IW_ENCODE_RESTRICTED;
1171 pParam->content.rsnGenericIE.length = wrqu->data.length;
1172 if (wrqu->data.length) {
1173 os_memoryCopy(pCmdInterpret->hOs, pParam->content.rsnGenericIE.data, cmdObj->param3, wrqu->data.length);
1183 switch (wrqu->param.flags & IW_AUTH_INDEX)
1186 pCmdInterpret->wai.iw_auth_wpa_version = wrqu->param.value;
1189 pCmdInterpret->wai.iw_auth_cipher_pairwise = wrqu->param.value;
1192 pCmdInterpret->wai.iw_auth_cipher_group = wrqu->param.value;
1195 pCmdInterpret->wai.iw_auth_key_mgmt = wrqu->param.value;
1198 pCmdInterpret->wai.iw_auth_80211_auth_alg = wrqu->param.value;
1219 switch (wrqu->param.flags & IW_AUTH_INDEX)
1222 wrqu->param.value = pCmdInterpret->wai.iw_auth_wpa_version;
1225 wrqu->param.value = pCmdInterpret->wai.iw_auth_cipher_pairwise;
1228 wrqu->param.value = pCmdInterpret->wai.iw_auth_cipher_group;
1231 wrqu->param.value = pCmdInterpret->wai.iw_auth_key_mgmt;
1234 wrqu->param.value = pCmdInterpret->wai.iw_auth_80211_auth_alg;
1261 key.keyIndex = (wrqu->encoding.flags & IW_ENCODE_INDEX) - 1;
1280 os_printf ("ext->key_idx = 0x%x\n",(wrqu->encoding.flags & IW_ENCODE_INDEX));
1294 pParam->content.rsnOsKey.KeyIndex = wrqu->encoding.flags & IW_ENCODE_INDEX;
1568 union iwreq_data wrqu;
1631 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1632 wrqu.data.length = assocInformation->RequestIELength;
1633 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVASSOCREQIE, &wrqu, (char *)assocInformation->OffsetRequestIEs);
1640 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1641 wrqu.data.length = assocInformation->ResponseIELength;
1642 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVASSOCRESPIE, &wrqu, (char *)responseIEs);
1675 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1676 wrqu.data.length = n;
1677 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVCUSTOM, &wrqu, beaconIE);
1698 wrqu.data.length = cckm_assoc.assocRespLen;
1699 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVASSOCRESPIE, &wrqu, (TI_UINT8*)cckm_assoc.assocRespBuffer);
1705 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1708 MAC_COPY (wrqu.ap_addr.sa_data, pParam->content.siteMgrDesiredBSSID);
1709 wrqu.ap_addr.sa_family = ARPHRD_ETHER;
1710 wireless_send_event(NETDEV(pCmdInterpret->hOs), SIOCGIWAP, &wrqu, NULL);
1716 wrqu.ap_addr.sa_family = ARPHRD_ETHER;
1717 os_memorySet (pCmdInterpret->hOs,wrqu.ap_addr.sa_data, 0, ETH_ALEN);
1719 wireless_send_event(NETDEV(pCmdInterpret->hOs), SIOCGIWAP, &wrqu, NULL);
1721 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1722 wrqu.data.length = sizeof(IPC_EV_DATA);
1723 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVCUSTOM, &wrqu, (TI_UINT8 *)pData);
1730 wrqu.data.length = 0;
1731 wrqu.data.flags = 0;
1735 wireless_send_event(NETDEV(pCmdInterpret->hOs), SIOCGIWSCAN, &wrqu, NULL);
1745 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1746 wrqu.data.length = sizeof(IPC_EV_DATA);
1747 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVCUSTOM, &wrqu, (u8 *)pData);
1779 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1780 wrqu.data.length = sizeof(ev);
1781 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVMICHAELMICFAILURE, &wrqu, (char *) &ev);
1800 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1802 wrqu.data.length = sizeof(pcand);
1805 &wrqu, (TI_UINT8 *)&pcand);
1822 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1823 wrqu.data.length = n;
1824 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVCUSTOM, &wrqu, Cckmstart);
1833 os_memorySet (pCmdInterpret->hOs,&wrqu, 0, sizeof(wrqu));
1834 wrqu.data.length = sizeof(IPC_EV_DATA);
1835 wireless_send_event(NETDEV(pCmdInterpret->hOs), IWEVCUSTOM, &wrqu, (TI_UINT8 *)pData);