]> 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)
commitde1536edd0abc0c2d13d6099e1e6ff8d2e648545
tree6ef39589ced179b1f76d7148652f10fc333f3349
parentbe815a31fc2f1b0811ca3776778052cde499f7c9
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