aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/cfg.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-07-01 15:26:58 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:01:52 -0400
commitab737a4f7dbe57b12b73f482a7b973bf00b41942 (patch)
tree33f3c44073921b9fa4c96ea5501dbfcad59567ac /net/mac80211/cfg.c
parentbc92afd92088ab41223383cc6863ab4792533c54 (diff)
cfg80211: implement IWAP for WDS
This implements siocsiwap/giwap for WDS mode. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r--net/mac80211/cfg.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 8c7b2cdbeeda..2cf5bf6378e4 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1369,6 +1369,16 @@ static int ieee80211_get_tx_power(struct wiphy *wiphy, int *dbm)
1369 return 0; 1369 return 0;
1370} 1370}
1371 1371
1372static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev,
1373 u8 *addr)
1374{
1375 struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
1376
1377 memcpy(&sdata->u.wds.remote_addr, addr, ETH_ALEN);
1378
1379 return 0;
1380}
1381
1372static void ieee80211_rfkill_poll(struct wiphy *wiphy) 1382static void ieee80211_rfkill_poll(struct wiphy *wiphy)
1373{ 1383{
1374 struct ieee80211_local *local = wiphy_priv(wiphy); 1384 struct ieee80211_local *local = wiphy_priv(wiphy);
@@ -1454,6 +1464,7 @@ struct cfg80211_ops mac80211_config_ops = {
1454 .set_wiphy_params = ieee80211_set_wiphy_params, 1464 .set_wiphy_params = ieee80211_set_wiphy_params,
1455 .set_tx_power = ieee80211_set_tx_power, 1465 .set_tx_power = ieee80211_set_tx_power,
1456 .get_tx_power = ieee80211_get_tx_power, 1466 .get_tx_power = ieee80211_get_tx_power,
1467 .set_wds_peer = ieee80211_set_wds_peer,
1457 .rfkill_poll = ieee80211_rfkill_poll, 1468 .rfkill_poll = ieee80211_rfkill_poll,
1458 CFG80211_TESTMODE_CMD(ieee80211_testmode_cmd) 1469 CFG80211_TESTMODE_CMD(ieee80211_testmode_cmd)
1459 .set_power_mgmt = ieee80211_set_power_mgmt, 1470 .set_power_mgmt = ieee80211_set_power_mgmt,