Subject: CVS commit: src/sys/net80211
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 11/20/2005 10:04:21
Module Name:	src
Committed By:	dyoung
Date:		Sun Nov 20 10:04:21 UTC 2005

Modified Files:
	src/sys/net80211: ieee80211_input.c ieee80211_node.c ieee80211_node.h

Log Message:
Repair adhoc mode.

        1 Complete initialization of "faked up" ieee80211_nodes,
          whose capabilities and other fields are wrong, when we
          first receive a beacon or probe response from the
          corresponding neighbor.  This entails factoring
          ieee80211_init_neighbor out of ieee80211_add_neighbor.

        2 In adhoc mode, ic->ic_bss is present in the neighbors
          table, ic->ic_sta, and it is not necessarily the wrong
          node on which to mark statistics for a rx'd packet.  Do
          not reject ic->ic_bss and fake-up a new node without
          comparing its MAC address with the address of the sender
          in the rx'd packet.  This fixes a memory leak.


To generate a diff of this commit:
cvs rdiff -r1.49 -r1.50 src/sys/net80211/ieee80211_input.c
cvs rdiff -r1.45 -r1.46 src/sys/net80211/ieee80211_node.c
cvs rdiff -r1.19 -r1.20 src/sys/net80211/ieee80211_node.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.