diff options
author | Hila Gonen <hila.gonen@intel.com> | 2012-06-27 10:19:42 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-18 04:53:37 -0400 |
commit | e35e4d28b687d4e849573419fdcf90f1cce2a14c (patch) | |
tree | 981265aea6c76bc8288c6000c0e935c2bbdd7f90 /net/wireless/util.c | |
parent | de7044ee85a9ba9e8529b0250f2882724407c977 (diff) |
cfg80211: add wrappers for registered_device_ops
This will allow adding central tracing like in mac80211.
Signed-off-by: Hila Gonen <hila.gonen@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/util.c')
-rw-r--r-- | net/wireless/util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c index ef35f4ef2aa6..343f13c1d31d 100644 --- a/net/wireless/util.c +++ b/net/wireless/util.c | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <net/ip.h> | 11 | #include <net/ip.h> |
12 | #include <net/dsfield.h> | 12 | #include <net/dsfield.h> |
13 | #include "core.h" | 13 | #include "core.h" |
14 | #include "rdev-ops.h" | ||
15 | |||
14 | 16 | ||
15 | struct ieee80211_rate * | 17 | struct ieee80211_rate * |
16 | ieee80211_get_response_rate(struct ieee80211_supported_band *sband, | 18 | ieee80211_get_response_rate(struct ieee80211_supported_band *sband, |
@@ -703,19 +705,18 @@ void cfg80211_upload_connect_keys(struct wireless_dev *wdev) | |||
703 | for (i = 0; i < 6; i++) { | 705 | for (i = 0; i < 6; i++) { |
704 | if (!wdev->connect_keys->params[i].cipher) | 706 | if (!wdev->connect_keys->params[i].cipher) |
705 | continue; | 707 | continue; |
706 | if (rdev->ops->add_key(wdev->wiphy, dev, i, false, NULL, | 708 | if (rdev_add_key(rdev, dev, i, false, NULL, |
707 | &wdev->connect_keys->params[i])) { | 709 | &wdev->connect_keys->params[i])) { |
708 | netdev_err(dev, "failed to set key %d\n", i); | 710 | netdev_err(dev, "failed to set key %d\n", i); |
709 | continue; | 711 | continue; |
710 | } | 712 | } |
711 | if (wdev->connect_keys->def == i) | 713 | if (wdev->connect_keys->def == i) |
712 | if (rdev->ops->set_default_key(wdev->wiphy, dev, | 714 | if (rdev_set_default_key(rdev, dev, i, true, true)) { |
713 | i, true, true)) { | ||
714 | netdev_err(dev, "failed to set defkey %d\n", i); | 715 | netdev_err(dev, "failed to set defkey %d\n", i); |
715 | continue; | 716 | continue; |
716 | } | 717 | } |
717 | if (wdev->connect_keys->defmgmt == i) | 718 | if (wdev->connect_keys->defmgmt == i) |
718 | if (rdev->ops->set_default_mgmt_key(wdev->wiphy, dev, i)) | 719 | if (rdev_set_default_mgmt_key(rdev, dev, i)) |
719 | netdev_err(dev, "failed to set mgtdef %d\n", i); | 720 | netdev_err(dev, "failed to set mgtdef %d\n", i); |
720 | } | 721 | } |
721 | 722 | ||
@@ -848,8 +849,7 @@ int cfg80211_change_iface(struct cfg80211_registered_device *rdev, | |||
848 | cfg80211_process_rdev_events(rdev); | 849 | cfg80211_process_rdev_events(rdev); |
849 | } | 850 | } |
850 | 851 | ||
851 | err = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, | 852 | err = rdev_change_virtual_intf(rdev, dev, ntype, flags, params); |
852 | ntype, flags, params); | ||
853 | 853 | ||
854 | WARN_ON(!err && dev->ieee80211_ptr->iftype != ntype); | 854 | WARN_ON(!err && dev->ieee80211_ptr->iftype != ntype); |
855 | 855 | ||