diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-20 12:22:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-20 16:49:37 -0400 |
commit | c28991a02caec1f3bfe4638ccf4e494c3e9418a3 (patch) | |
tree | 9cf993d74d59723673963877fc80379684e5e7ad | |
parent | 3f6ff6bacdec217c98a60910c4804d11ce859820 (diff) |
wireless: correct sparse warning in wext-compat.c
CHECK net/wireless/wext-compat.c
net/wireless/wext-compat.c:1434:5: warning: symbol 'cfg80211_wext_siwpmksa' was not declared. Should it be static?
Add declaration in cfg80211.h. Also add an EXPORT_SYMBOL_GPL, since all
the peer functions have it.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | include/net/cfg80211.h | 4 | ||||
-rw-r--r-- | net/wireless/wext-compat.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 9b8b3f486ec8..f68ae54cdae6 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1963,6 +1963,10 @@ int cfg80211_wext_giwap(struct net_device *dev, | |||
1963 | struct iw_request_info *info, | 1963 | struct iw_request_info *info, |
1964 | struct sockaddr *ap_addr, char *extra); | 1964 | struct sockaddr *ap_addr, char *extra); |
1965 | 1965 | ||
1966 | int cfg80211_wext_siwpmksa(struct net_device *dev, | ||
1967 | struct iw_request_info *info, | ||
1968 | struct iw_point *data, char *extra); | ||
1969 | |||
1966 | /* | 1970 | /* |
1967 | * callbacks for asynchronous cfg80211 methods, notification | 1971 | * callbacks for asynchronous cfg80211 methods, notification |
1968 | * functions and BSS handling helpers | 1972 | * functions and BSS handling helpers |
diff --git a/net/wireless/wext-compat.c b/net/wireless/wext-compat.c index 1ff1e9f49136..bb5e0a5ecfa1 100644 --- a/net/wireless/wext-compat.c +++ b/net/wireless/wext-compat.c | |||
@@ -1471,6 +1471,7 @@ int cfg80211_wext_siwpmksa(struct net_device *dev, | |||
1471 | return -EOPNOTSUPP; | 1471 | return -EOPNOTSUPP; |
1472 | } | 1472 | } |
1473 | } | 1473 | } |
1474 | EXPORT_SYMBOL_GPL(cfg80211_wext_siwpmksa); | ||
1474 | 1475 | ||
1475 | static const iw_handler cfg80211_handlers[] = { | 1476 | static const iw_handler cfg80211_handlers[] = { |
1476 | [IW_IOCTL_IDX(SIOCGIWNAME)] = (iw_handler) cfg80211_wext_giwname, | 1477 | [IW_IOCTL_IDX(SIOCGIWNAME)] = (iw_handler) cfg80211_wext_giwname, |