mac80211: implement sta_add/sta_remove in sta_state
authorJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jan 2012 12:55:22 +0000 (13:55 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Feb 2012 19:48:25 +0000 (14:48 -0500)
commita4ec45a421b80bc36fd37578accf081f32527a7f
tree2eed7b4fbdece2358be059773b010b6acc3806b0
parentf09603a259ffef69ad4516a04eb06cd65ac522fe
mac80211: implement sta_add/sta_remove in sta_state

Instead of maintaining separate sta_add/sta_remove
callsites, implement it in sta_state when the driver
has no sta_state implementation.

The only behavioural change this should cause is in
secure mesh mode: with this the station entries will
only be created after the stations are set to AUTH.
Given which drivers support mesh, this seems to not
be a problem.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/driver-ops.h
net/mac80211/pm.c
net/mac80211/sta_info.c
net/mac80211/util.c