Sam Leffler | 1 Jul 2004 22:31
Picon

madwifi/net80211 ieee80211_radius.c,1.1.2.12,1.1.2.13

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11887

Modified Files:
      Tag: WPA
	ieee80211_radius.c 
Log Message:
Correct radius attribute fragmentation logic.

Submitted by:	"Andy" <wireless <at> windsorcarclub.co.uk>

Index: ieee80211_radius.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_radius.c,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -C2 -d -r1.1.2.12 -r1.1.2.13
*** ieee80211_radius.c	17 Jun 2004 04:11:57 -0000	1.1.2.12
--- ieee80211_radius.c	1 Jul 2004 20:31:20 -0000	1.1.2.13
***************
*** 1090,1095 ****
  	for (cp = (u_int8_t *)eap; len > 0; cp += cc, len -= cc) {
  		cc = len;
! 		if (len > RAD_MAX_ATTR_LEN)
! 			len = RAD_MAX_ATTR_LEN;
  		dp = radius_add_bytes(dp, RAD_ATTR_EAP_MESSAGE, cp, cc);
  	}
--- 1090,1095 ----
  	for (cp = (u_int8_t *)eap; len > 0; cp += cc, len -= cc) {
  		cc = len;
(Continue reading)

Sam Leffler | 1 Jul 2004 22:42
Picon

madwifi/net80211 ieee80211_wireless.c,1.1.2.18,1.1.2.19

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14227

Modified Files:
      Tag: WPA
	ieee80211_wireless.c 
Log Message:
uniq'ify error codes in ieee80211_ioctl_setkey

Reminded by:	"Andy" <wireless <at> windsorcarclub.co.uk>

Index: ieee80211_wireless.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_wireless.c,v
retrieving revision 1.1.2.18
retrieving revision 1.1.2.19
diff -C2 -d -r1.1.2.18 -r1.1.2.19
*** ieee80211_wireless.c	28 Jun 2004 16:40:02 -0000	1.1.2.18
--- ieee80211_wireless.c	1 Jul 2004 20:42:51 -0000	1.1.2.19
***************
*** 1704,1708 ****
  	/* NB: this also checks ik->ik_keylen > sizeof(wk->wk_key) */
  	if (ik->ik_keylen > sizeof(ik->ik_keydata))
! 		return -EINVAL;
  	kid = ik->ik_keyix;
  	if (kid == IEEE80211_KEYIX_NONE) {
--- 1704,1708 ----
  	/* NB: this also checks ik->ik_keylen > sizeof(wk->wk_key) */
  	if (ik->ik_keylen > sizeof(ik->ik_keydata))
! 		return -E2BIG;
(Continue reading)

Sam Leffler | 1 Jul 2004 22:46
Picon

madwifi/net80211 ieee80211_input.c,1.1.4.10,1.1.4.11

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14865

Modified Files:
      Tag: WPA
	ieee80211_input.c 
Log Message:
always record WPA information elements in beacon/probe response frames so
they are included in scan results w/o enabling WPA usage

Index: ieee80211_input.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_input.c,v
retrieving revision 1.1.4.10
retrieving revision 1.1.4.11
diff -C2 -d -r1.1.4.10 -r1.1.4.11
*** ieee80211_input.c	29 Jun 2004 01:07:49 -0000	1.1.4.10
--- ieee80211_input.c	1 Jul 2004 20:46:40 -0000	1.1.4.11
***************
*** 1578,1589 ****
  				break;
  			case IEEE80211_ELEMID_RSN:
! 				if (ic->ic_flags & IEEE80211_F_WPA2)
! 					wpa = frm;
  				break;
  			case IEEE80211_ELEMID_VENDOR:
! 				if (iswpaoui(frm)) {
! 					if (ic->ic_flags & IEEE80211_F_WPA1)
! 						wpa = frm;
! 				}
(Continue reading)

Sam Leffler | 2 Jul 2004 00:17
Picon

madwifi/net80211 ieee80211.c,1.1.4.4,1.1.4.5 ieee80211_input.c,1.1.4.11,1.1.4.12

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1011

Modified Files:
      Tag: WPA
	ieee80211.c ieee80211_input.c 
Log Message:
force short slot time for 11a operation; we should probably just leave
things alone when operating in 11a but for now this restores 11a
performance to expected levels

Hard work by:	Kevin Yu

Index: ieee80211_input.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_input.c,v
retrieving revision 1.1.4.11
retrieving revision 1.1.4.12
diff -C2 -d -r1.1.4.11 -r1.1.4.12
*** ieee80211_input.c	1 Jul 2004 20:46:40 -0000	1.1.4.11
--- ieee80211_input.c	1 Jul 2004 22:17:32 -0000	1.1.4.12
***************
*** 2115,2119 ****
  		}
  		ieee80211_set_shortslottime(ic,
! 			ni->ni_capinfo & IEEE80211_CAPINFO_SHORT_SLOTTIME);
  		/*
  		 * Honor ERP protection.
--- 2115,2120 ----
  		}
(Continue reading)

Sam Leffler | 7 Jul 2004 17:35
Picon

madwifi/net80211 ieee80211.h,1.1.4.5,1.1.4.6

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24885

Modified Files:
      Tag: WPA
	ieee80211.h 
Log Message:
bring over wme definitions from head

Index: ieee80211.h
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211.h,v
retrieving revision 1.1.4.5
retrieving revision 1.1.4.6
diff -C2 -d -r1.1.4.5 -r1.1.4.6
*** ieee80211.h	23 Jun 2004 19:17:29 -0000	1.1.4.5
--- ieee80211.h	7 Jul 2004 15:35:14 -0000	1.1.4.6
***************
*** 108,152 ****
  } __packed;

- /*
-  * Management Notification Frame
-  */
- struct ieee80211_mnf {
- 	u_int8_t	mnf_category;
- 	u_int8_t	mnf_action;
- 	u_int8_t	mnf_dialog;
- 	u_int8_t	mnf_status;
- } __packed;
(Continue reading)

Sam Leffler | 7 Jul 2004 17:37
Picon

madwifi/net80211 if_ethersubr.h,1.1.2.2,1.1.2.3

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25157

Modified Files:
      Tag: WPA
	if_ethersubr.h 
Log Message:
add definition we'll need for wme

Index: if_ethersubr.h
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/if_ethersubr.h,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** if_ethersubr.h	25 Feb 2004 01:20:43 -0000	1.1.2.2
--- if_ethersubr.h	7 Jul 2004 15:37:04 -0000	1.1.2.3
***************
*** 60,63 ****
--- 60,66 ----
  #define	ETHERTYPE_PAE	0x888e		/* EAPOL PAE/802.1x */
  #endif
+ #ifndef ETHERTYPE_IP
+ #define	ETHERTYPE_IP	0x0800		/* IP protocol */
+ #endif

  /*

-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
(Continue reading)

Sam Leffler | 7 Jul 2004 17:56
Picon

madwifi/net80211 ieee80211_node.c,1.1.4.9,1.1.4.10

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28488

Modified Files:
      Tag: WPA
	ieee80211_node.c 
Log Message:
change node_cleanup to not assume the caller will reclaim node storage
on return; this safeguards double free issues in forthcoming code

Index: ieee80211_node.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_node.c,v
retrieving revision 1.1.4.9
retrieving revision 1.1.4.10
diff -C2 -d -r1.1.4.9 -r1.1.4.10
*** ieee80211_node.c	24 Jun 2004 00:44:47 -0000	1.1.4.9
--- ieee80211_node.c	7 Jul 2004 15:56:19 -0000	1.1.4.10
***************
*** 562,572 ****
  	int i;

! 	if (ni->ni_challenge != NULL)
  		FREE(ni->ni_challenge, M_DEVBUF);
! 	if (ni->ni_wpa_ie)
  		FREE(ni->ni_wpa_ie, M_DEVBUF);
  	for (i = 0; i < N(ni->ni_rxfrag); i++)
! 		if (ni->ni_rxfrag[i] != NULL)
  			kfree_skb(ni->ni_rxfrag[i]);
  	ieee80211_crypto_delkey(ic, &ni->ni_ucastkey);
(Continue reading)

Sam Leffler | 7 Jul 2004 18:02
Picon

madwifi/net80211 ieee80211_input.c,1.1.4.12,1.1.4.13

Update of /cvsroot/madwifi/madwifi/net80211
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30060

Modified Files:
      Tag: WPA
	ieee80211_input.c 
Log Message:
pull code to save an information element out into a function so it can be reused

Index: ieee80211_input.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/net80211/Attic/ieee80211_input.c,v
retrieving revision 1.1.4.12
retrieving revision 1.1.4.13
diff -C2 -d -r1.1.4.12 -r1.1.4.13
*** ieee80211_input.c	1 Jul 2004 22:17:32 -0000	1.1.4.12
--- ieee80211_input.c	7 Jul 2004 16:02:15 -0000	1.1.4.13
***************
*** 1432,1435 ****
--- 1432,1451 ----
  }

+ static void
+ ieee80211_saveie(u_int8_t **iep, const u_int8_t *ie)
+ {
+ 	u_int ielen = ie[1]+2;
+ 	/*
+ 	 * Record information element for later use.
+ 	 */
+ 	if (*iep == NULL || (*iep)[1] != ie[1]) {
(Continue reading)

Sam Leffler | 7 Jul 2004 19:21
Picon

madwifi/ath if_ath.c,1.1.2.17,1.1.2.18

Update of /cvsroot/madwifi/madwifi/ath
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13548

Modified Files:
      Tag: WPA
	if_ath.c 
Log Message:
don't gratuitously set slot time; we only do it when instructed
by the 802.11 layer

Index: if_ath.c
===================================================================
RCS file: /cvsroot/madwifi/madwifi/ath/Attic/if_ath.c,v
retrieving revision 1.1.2.17
retrieving revision 1.1.2.18
diff -C2 -d -r1.1.2.17 -r1.1.2.18
*** if_ath.c	29 Jun 2004 17:31:22 -0000	1.1.2.17
--- if_ath.c	7 Jul 2004 17:20:59 -0000	1.1.2.18
***************
*** 1599,1605 ****
  	ath_hal_setrxfilter(ah, rfilt);

! 	/* configure operational mode and slot time */
  	ath_hal_setopmode(ah);
- 	ath_setslottime(sc);

  	/* calculate and install multicast filter */
--- 1599,1604 ----
  	ath_hal_setrxfilter(ah, rfilt);

(Continue reading)

Sam Leffler | 9 Jul 2004 18:44
Picon

madwifi/patches/2.4 install.sh,1.1.2.2,1.1.2.3

Update of /cvsroot/madwifi/madwifi/patches/2.4
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7127/2.4

Modified Files:
      Tag: WPA
	install.sh 
Log Message:
add -N flag to patch so fuzzy patches are ignored after the first application;
this fixes embedding the code in kernels >= 2.6.6

Index: install.sh
===================================================================
RCS file: /cvsroot/madwifi/madwifi/patches/2.4/Attic/install.sh,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -C2 -d -r1.1.2.2 -r1.1.2.3
*** install.sh	9 Jun 2004 19:59:56 -0000	1.1.2.2
--- install.sh	9 Jul 2004 16:44:31 -0000	1.1.2.3
***************
*** 19,23 ****
  PATCH()
  {
! 	cmp -s $1 $2 || patch $1 < $2.patch
  }

--- 19,23 ----
  PATCH()
  {
! 	cmp -s $1 $2 || patch -N $1 < $2.patch
  }
(Continue reading)


Gmane