]> git.baikalelectronics.ru Git - kernel.git/commit
nl80211/mac80211: allow adding TDLS peers as stations
authorArik Nemtsov <arik@wizery.com>
Wed, 28 Sep 2011 11:12:53 +0000 (14:12 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Sep 2011 19:57:08 +0000 (15:57 -0400)
commite3908ca79784d1d12bc1db6765b1fa5742f12e2a
tree6ef39589ced179b1f76d7148652f10fc333f3349
parentc1efeda4e558855a3747929a909215b2f11e9043
nl80211/mac80211: allow adding TDLS peers as stations

When adding a TDLS peer STA, mark it with a new flag in both nl80211 and
mac80211. Before adding a peer, make sure the wiphy supports TDLS and
our operating mode is appropriate (managed).

In addition, make sure all peers are removed on disassociation.

A TDLS peer is first added just before link setup is initiated. In later
setup stages we have more info about peer supported rates, capabilities,
etc. This info is reported via nl80211_set_station().

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Cc: Kalyan C Gaddam <chakkal@iit.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/nl80211.h
net/mac80211/cfg.c
net/mac80211/mlme.c
net/mac80211/sta_info.h
net/wireless/nl80211.c