I've encountered a pretty weird problem in ad-hoc mode:
in a cell with three hosts (all running madwifi r1457), sending traffic
from one host to another creates a duplicate node list entry
("wlanconfig ath0 list sta") on the destination host for each data
packet received. This happens only in some situations where I'm still
not 100% sure about the reproducibility.
I've tracked down the problem to ieee80211_input (l. 235), where
ieee80211_fakeup_adhoc_node() is called to generate a new entry without
checking if the sender is already known.
In my understanding of the code, ieee80211_input() should already be
called with ni pointing to the sender node ieee80211_node structure and
not to the own record.
As this doesn't happen always, duplicate entries are created.
I've created a "fix" which first checks if the node is known and only
creates a fake adhoc node if the sender isn't found in the table.
But still I'm not sure if ieee80211_input() is allowed to be called
without first finding/creating a ieee80211_node for the sender of the
Could somebody with deeper knowledge of the code confirm or deny this?
P.S: to track the issue I've created a crude hack to track MAC addresses
in ieee80211_alloc_node() and to oops when a number of duplicate entries
is detected. If somebody is interested I'd be glad to share the code via
private email (it is way too crude to be posted here ;)
|| http://op-co.de ++ GCS/CM d? s: a-- C+++ UL+++ !P L+++ E--- W++ ++
|| gpg: 0x962FD2DE || N++ o? K- w---() O M V? PS+ PE-- Y+ PGP++ t* ||
|| Ge0rG: euIRCnet || 5 X+ R tv b+(+++) DI+(+++) D+ G e* h! r* !y+ ||
++ IRCnet OFTC OPN ||________________________________________________||