rt2x00: Replace open coded interface checking with interface combinations.
authorGertjan van Wingerde <gwingerde@gmail.com>
Sun, 23 Sep 2012 18:22:54 +0000 (20:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 25 Sep 2012 19:57:44 +0000 (15:57 -0400)
commit55d2e9da744ba11eae900b4bfc2da72eace3c1e1
treea66326a7c51db3390c31a6d9b770c7860116a79d
parent3e4c4151e56ff367fb1487ea79134eea74104077
rt2x00: Replace open coded interface checking with interface combinations.

Mac80211 has formal infrastructure to specify which interface combinations
are supported. Make use of this facility in favor of open coding it
ourselves.
So far we only have to specify we can support multiple AP interfaces,
no other combinations are supported.

Inspired by an earlier patch from Paul Fertser.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Cc: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00mac.c