From: David Seira <davidseira@gm...> - 2009-08-27 10:30:14
I continue with the memory leak in ifconfig ath0 up/down. I'm trying to solve
the bug but I need more information. In which function is the node alloc by
"ath_node_alloc" function freed?
I've seen that when you do an "ifconfig ath0 down" the secuence is:
Is possible that this new state is not freed?
From: David Seira <davidseira@gm...> - 2009-08-28 08:23:09
I've observed that "wlanconfig ath0 destroy" command
produces the memory leak, also; like "ifconfig ath0 down".
Both commands executes "ieee80211_stop" function finally.
So I think that is possible that the new state created by
isn't released properly.
Can this be possible?
From: David Seira <davidseira@gm...> - 2009-09-01 08:22:01
I've used printk to try to debug madwifi allocation nodes. I've seen that when I
do "wlanconfig ath0 create wlandev wifi0 wlanmode monitor" it alloc a node. But
when I do "wlanconfig ath0 destroy" that node hasn't released. Moreover, when I
do "ifconfig ath0 up; ifconfig ath0 down" it alloc a node, also.
From: David Seira <davidseira@gm...> - 2009-09-01 15:18:13
With the strategy above, I've observed the next behaviour:
- When I do a "wlanconfig ath1 create wlandev wifi0 wlanmode monitor" it call an
"ath_node_alloc" function and "ieee80211_node_alloc" function.
- When I do a "wlanconfig ath1 destroy" it doesn't call a "ath_node_free"
function neither "ieee80211_free_node" function.
- When I do an "ifconfig ath1 up" it does nothing.
- When I do an "ifconfig ath1 down" it calls a "ieee80211_reset_bss" and then it
calls a "ath_node_alloc" and "ieee80211_node_alloc" functions but it doesn't
call a node release function.
Is it possible that the problem is in "ieee80211_node_alloc" function?
How can I do to free the nodes?
From: David Seira <davidseira@gm...> - 2009-09-02 14:36:29
One problem ocurrs when I do an "ifconfig ath0 down", it produces a newstate,
concretely run state, then executes "ieee80211_reset_bss" function which
allocates another node. This node is never freed.
What can I do to free the node correctly?
Another problem is that when I do an "ifconfig ath0 up", it calls
"ath_node_alloc" function but I don't know where free this node allocated.
Where can I free this memory?
Thanks for all.