[lwlan-devel] wext: when setting keys, use default key if no key is specified

Tormod Volden lists.tormod at gmail.com
Mon Feb 4 11:48:40 EST 2008


On Feb 4, 2008 5:31 PM, Tormod Volden <lists.tormod at gmail.com> wrote:
> present" so I am not totally sure about this. The old code seems to
> use IW_ENCODE_NOKEY as presence of a key or not.

Sorry, the old code uses ~IW_ENCODE_NOKEY and (erq->length > 0) to
check for keys. Maybe I should have done that as well in this part:

+		/* Set current key number only if no keys are given */
+		if (erq->flags & IW_ENCODE_NOKEY) {
+			result = p80211wext_dorequest(wlandev,
DIDmib_dot11smt_dot11PrivacyTable_dot11WEPDefaultKeyID, i);

Tormod


More information about the Linux-wlan-devel mailing list