]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
ath9k: add WDS interfaces to ath9k
authorBill Jordan <bjordan@rajant.com>
Fri, 1 Oct 2010 15:20:39 +0000 (11:20 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Oct 2010 17:35:24 +0000 (13:35 -0400)
Enable WDS for the ath9k driver.

Signed-off-by: Bill Jordan <bjordan@rajant.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/main.c

index 282bb482424fb2a074abef4954f1243dca41807d..d76003c06fe4dc1a53be4b82a9010213a1bcf7ad 100644 (file)
@@ -657,6 +657,7 @@ void ath9k_set_hw_capab(struct ath_softc *sc, struct ieee80211_hw *hw)
 
        hw->wiphy->interface_modes =
                BIT(NL80211_IFTYPE_AP) |
+               BIT(NL80211_IFTYPE_WDS) |
                BIT(NL80211_IFTYPE_STATION) |
                BIT(NL80211_IFTYPE_ADHOC) |
                BIT(NL80211_IFTYPE_MESH_POINT);
index 49ea45896b89e496b554814d89595a80557c7919..e6ddf45506bedb705e9aeabf8f2f61cb82991a8b 100644 (file)
@@ -1374,6 +1374,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
        case NL80211_IFTYPE_STATION:
                ic_opmode = NL80211_IFTYPE_STATION;
                break;
+       case NL80211_IFTYPE_WDS:
+               ic_opmode = NL80211_IFTYPE_WDS;
+               break;
        case NL80211_IFTYPE_ADHOC:
        case NL80211_IFTYPE_AP:
        case NL80211_IFTYPE_MESH_POINT: