[PATCH 3/3] prism54: add initial WPA work
From: Luis R. Rodriguez <hidden>
Date: 2004-08-19 23:05:52
Please note that this is the initial work to add WPA support for STAs through wpa_supplicant. More work and patches to come soon to complete this work. 2004-08-18 Luis R. Rodriguez [off-list ref] Work based on initial patches from Jouni Malinen [off-list ref] Initial wpa_supplicant support work: ------------------------------------ * isl_ioctl.c (prism54_process_trap_helper): Start to use mlmeex, start doing what's right for DOT11_OID_AUTHENTICATEEX, DOT11_OID_ASSOCIATEEX, DOT11_OID_ASSOCIATEEX, and DOT11_OID_REASSOCIATEEX * isl_ioctl.c: add temporary structure for wpa_supplicant requests, * isl_ioctl.c: add prism2_ioctl_set_encryption which can probably be removed later * isl_ioctl.c: add prism2_ioctl_set_generic_element (well tested) * isl_ioctl.c: add prism2_ioctl_mlme which should be unnecessary since WE scan should be used by wpa_supplicant * isl_ioctl.c: add prism54_hostapd - this parses wpa_supplicant requests and does the right job for each * isl_ioctl.c (prism54_set_wpa): changed to not use mgt_set/mgt_commit as commit is unecessary. Added proper OID sets to enable/disable WPA. This is called by wpa_supplicant at startup. This should eventually be part of WE18. * isl_ioctl.c (prism54_ioctl): Links wpa_supplicant to prism54 * isl_ioctl.h: defined prism54_set_wpa to allow prism54_hostapd to use * isl_oid.h: add struct obj_attachment for OID OID_TYPE_ATTACH * oid_mgt.c: map OID DOT11_OID_ATTACHMENT to struct obj_attachment * oid_mgt.c (mgt_le_to_cpu, mgt_cpu_to_le): handle endianness for obj_attachment * oid_mgt.c: add mgt_set_varlen, needed for mlmeex as it has a variable size field. * oid_mgt.c: add mgt_unlatch_all, this can be used to force a commit on OIDs: MEDIUMLIMIT, BEACONPERIOD, DTIMPERIOD, ATIMWINDOW, LISTENINTERVAL, FREQUENCY, EXTENDEDRATES These OIDs are "latched". TODO: config mode handling. * oid_mgt.c (mgt_response_to_str): learn to parse OID_TYPE_ATTACH * oid_mgt.h: add mgt_set_varlen, and mgt_unlatch_all -- GnuPG Key fingerprint = 113F B290 C6D2 0251 4D84 A34A 6ADD 4937 E20A 525E