aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/wext.c')
-rw-r--r--drivers/net/wireless/libertas/wext.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/net/wireless/libertas/wext.c b/drivers/net/wireless/libertas/wext.c
index c0c7bc40b109..f07ba0b6c5f1 100644
--- a/drivers/net/wireless/libertas/wext.c
+++ b/drivers/net/wireless/libertas/wext.c
@@ -298,6 +298,7 @@ static int lbs_get_nick(struct net_device *dev, struct iw_request_info *info,
298 return 0; 298 return 0;
299} 299}
300 300
301#ifdef CONFIG_LIBERTAS_MESH
301static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info, 302static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info,
302 struct iw_point *dwrq, char *extra) 303 struct iw_point *dwrq, char *extra)
303{ 304{
@@ -321,6 +322,7 @@ static int mesh_get_nick(struct net_device *dev, struct iw_request_info *info,
321 lbs_deb_leave(LBS_DEB_WEXT); 322 lbs_deb_leave(LBS_DEB_WEXT);
322 return 0; 323 return 0;
323} 324}
325#endif
324 326
325static int lbs_set_rts(struct net_device *dev, struct iw_request_info *info, 327static int lbs_set_rts(struct net_device *dev, struct iw_request_info *info,
326 struct iw_param *vwrq, char *extra) 328 struct iw_param *vwrq, char *extra)
@@ -422,6 +424,7 @@ static int lbs_get_mode(struct net_device *dev,
422 return 0; 424 return 0;
423} 425}
424 426
427#ifdef CONFIG_LIBERTAS_MESH
425static int mesh_wlan_get_mode(struct net_device *dev, 428static int mesh_wlan_get_mode(struct net_device *dev,
426 struct iw_request_info *info, u32 * uwrq, 429 struct iw_request_info *info, u32 * uwrq,
427 char *extra) 430 char *extra)
@@ -433,6 +436,7 @@ static int mesh_wlan_get_mode(struct net_device *dev,
433 lbs_deb_leave(LBS_DEB_WEXT); 436 lbs_deb_leave(LBS_DEB_WEXT);
434 return 0; 437 return 0;
435} 438}
439#endif
436 440
437static int lbs_get_txpow(struct net_device *dev, 441static int lbs_get_txpow(struct net_device *dev,
438 struct iw_request_info *info, 442 struct iw_request_info *info,
@@ -1010,6 +1014,7 @@ out:
1010 return ret; 1014 return ret;
1011} 1015}
1012 1016
1017#ifdef CONFIG_LIBERTAS_MESH
1013static int lbs_mesh_set_freq(struct net_device *dev, 1018static int lbs_mesh_set_freq(struct net_device *dev,
1014 struct iw_request_info *info, 1019 struct iw_request_info *info,
1015 struct iw_freq *fwrq, char *extra) 1020 struct iw_freq *fwrq, char *extra)
@@ -1061,6 +1066,7 @@ out:
1061 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret); 1066 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret);
1062 return ret; 1067 return ret;
1063} 1068}
1069#endif
1064 1070
1065static int lbs_set_rate(struct net_device *dev, struct iw_request_info *info, 1071static int lbs_set_rate(struct net_device *dev, struct iw_request_info *info,
1066 struct iw_param *vwrq, char *extra) 1072 struct iw_param *vwrq, char *extra)
@@ -2110,6 +2116,7 @@ out:
2110 return ret; 2116 return ret;
2111} 2117}
2112 2118
2119#ifdef CONFIG_LIBERTAS_MESH
2113static int lbs_mesh_get_essid(struct net_device *dev, 2120static int lbs_mesh_get_essid(struct net_device *dev,
2114 struct iw_request_info *info, 2121 struct iw_request_info *info,
2115 struct iw_point *dwrq, char *extra) 2122 struct iw_point *dwrq, char *extra)
@@ -2163,6 +2170,7 @@ static int lbs_mesh_set_essid(struct net_device *dev,
2163 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret); 2170 lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret);
2164 return ret; 2171 return ret;
2165} 2172}
2173#endif
2166 2174
2167/** 2175/**
2168 * @brief Connect to the AP or Ad-hoc Network with specific bssid 2176 * @brief Connect to the AP or Ad-hoc Network with specific bssid
@@ -2269,7 +2277,13 @@ static const iw_handler lbs_handler[] = {
2269 (iw_handler) lbs_get_encodeext,/* SIOCGIWENCODEEXT */ 2277 (iw_handler) lbs_get_encodeext,/* SIOCGIWENCODEEXT */
2270 (iw_handler) NULL, /* SIOCSIWPMKSA */ 2278 (iw_handler) NULL, /* SIOCSIWPMKSA */
2271}; 2279};
2280struct iw_handler_def lbs_handler_def = {
2281 .num_standard = ARRAY_SIZE(lbs_handler),
2282 .standard = (iw_handler *) lbs_handler,
2283 .get_wireless_stats = lbs_get_wireless_stats,
2284};
2272 2285
2286#ifdef CONFIG_LIBERTAS_MESH
2273static const iw_handler mesh_wlan_handler[] = { 2287static const iw_handler mesh_wlan_handler[] = {
2274 (iw_handler) NULL, /* SIOCSIWCOMMIT */ 2288 (iw_handler) NULL, /* SIOCSIWCOMMIT */
2275 (iw_handler) lbs_get_name, /* SIOCGIWNAME */ 2289 (iw_handler) lbs_get_name, /* SIOCGIWNAME */
@@ -2327,14 +2341,10 @@ static const iw_handler mesh_wlan_handler[] = {
2327 (iw_handler) lbs_get_encodeext,/* SIOCGIWENCODEEXT */ 2341 (iw_handler) lbs_get_encodeext,/* SIOCGIWENCODEEXT */
2328 (iw_handler) NULL, /* SIOCSIWPMKSA */ 2342 (iw_handler) NULL, /* SIOCSIWPMKSA */
2329}; 2343};
2330struct iw_handler_def lbs_handler_def = {
2331 .num_standard = ARRAY_SIZE(lbs_handler),
2332 .standard = (iw_handler *) lbs_handler,
2333 .get_wireless_stats = lbs_get_wireless_stats,
2334};
2335 2344
2336struct iw_handler_def mesh_handler_def = { 2345struct iw_handler_def mesh_handler_def = {
2337 .num_standard = ARRAY_SIZE(mesh_wlan_handler), 2346 .num_standard = ARRAY_SIZE(mesh_wlan_handler),
2338 .standard = (iw_handler *) mesh_wlan_handler, 2347 .standard = (iw_handler *) mesh_wlan_handler,
2339 .get_wireless_stats = lbs_get_wireless_stats, 2348 .get_wireless_stats = lbs_get_wireless_stats,
2340}; 2349};
2350#endif