Skip to content

Commit c28991a

Browse files
committed
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>
1 parent 3f6ff6b commit c28991a

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/net/cfg80211.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,6 +1963,10 @@ int cfg80211_wext_giwap(struct net_device *dev,
19631963
struct iw_request_info *info,
19641964
struct sockaddr *ap_addr, char *extra);
19651965

1966+
int cfg80211_wext_siwpmksa(struct net_device *dev,
1967+
struct iw_request_info *info,
1968+
struct iw_point *data, char *extra);
1969+
19661970
/*
19671971
* callbacks for asynchronous cfg80211 methods, notification
19681972
* functions and BSS handling helpers

‎net/wireless/wext-compat.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,7 @@ int cfg80211_wext_siwpmksa(struct net_device *dev,
14711471
return -EOPNOTSUPP;
14721472
}
14731473
}
1474+
EXPORT_SYMBOL_GPL(cfg80211_wext_siwpmksa);
14741475

14751476
static const iw_handler cfg80211_handlers[] = {
14761477
[IW_IOCTL_IDX(SIOCGIWNAME)] = (iw_handler) cfg80211_wext_giwname,

0 commit comments

Comments
 (0)