Lines Matching defs:dwrq
1676 struct iw_point *dwrq,
1682 if (dwrq->flags == 0) {
1685 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1690 if (dwrq->length > MAX_SSID_LENGTH)
1695 memcpy(priv->new_SSID, extra, dwrq->length);
1696 priv->new_SSID_size = dwrq->length;
1704 struct iw_point *dwrq,
1712 dwrq->length = priv->new_SSID_size;
1715 dwrq->length = priv->SSID_size;
1718 dwrq->flags = !priv->connect_to_any_BSS; /* active */
1737 struct iw_point *dwrq,
1748 if (dwrq->length > 0) {
1749 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1752 if (dwrq->length > 13) {
1761 if (dwrq->length > 5)
1764 if (dwrq->length > 0)
1770 if (!(dwrq->flags & IW_ENCODE_NOKEY)) {
1774 memcpy(priv->wep_keys[index], extra, dwrq->length);
1793 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1798 if (!(dwrq->flags & IW_ENCODE_MODE))
1802 if (dwrq->flags & IW_ENCODE_DISABLED) {
1816 if (dwrq->flags & IW_ENCODE_RESTRICTED)
1818 if (dwrq->flags & IW_ENCODE_OPEN)
1826 struct iw_point *dwrq,
1830 int index = (dwrq->flags & IW_ENCODE_INDEX) - 1;
1833 dwrq->flags = IW_ENCODE_DISABLED;
1836 dwrq->flags = IW_ENCODE_RESTRICTED;
1838 dwrq->flags = IW_ENCODE_OPEN;
1843 dwrq->flags |= index + 1;
1845 dwrq->length = priv->wep_key_len[index];
1846 if (dwrq->length > 16) {
1847 dwrq->length = 0;
1850 memcpy(extra, priv->wep_keys[index], dwrq->length);
2315 struct iw_point *dwrq,
2353 struct iw_point *dwrq,
2416 dwrq->length = (current_ev - extra);
2417 dwrq->flags = 0;
2424 struct iw_point *dwrq,
2431 dwrq->length = sizeof(struct iw_range);