aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/control.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wimax/i2400m/control.c')
-rw-r--r--drivers/net/wimax/i2400m/control.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/net/wimax/i2400m/control.c b/drivers/net/wimax/i2400m/control.c
index 9fb03082153a..727d728649b7 100644
--- a/drivers/net/wimax/i2400m/control.c
+++ b/drivers/net/wimax/i2400m/control.c
@@ -98,7 +98,7 @@ MODULE_PARM_DESC(power_save_disabled,
98 "False by default (so the device is told to do power " 98 "False by default (so the device is told to do power "
99 "saving)."); 99 "saving).");
100 100
101int i2400m_passive_mode; /* 0 (passive mode disabled) by default */ 101static int i2400m_passive_mode; /* 0 (passive mode disabled) by default */
102module_param_named(passive_mode, i2400m_passive_mode, int, 0644); 102module_param_named(passive_mode, i2400m_passive_mode, int, 0644);
103MODULE_PARM_DESC(passive_mode, 103MODULE_PARM_DESC(passive_mode,
104 "If true, the driver will not do any device setup " 104 "If true, the driver will not do any device setup "
@@ -378,7 +378,7 @@ void i2400m_report_tlv_system_state(struct i2400m *i2400m,
378 * the device's state as sometimes we need to do a link-renew (the BS 378 * the device's state as sometimes we need to do a link-renew (the BS
379 * wants us to renew a DHCP lease, for example). 379 * wants us to renew a DHCP lease, for example).
380 * 380 *
381 * In fact, doc says that everytime we get a link-up, we should do a 381 * In fact, doc says that every time we get a link-up, we should do a
382 * DHCP negotiation... 382 * DHCP negotiation...
383 */ 383 */
384static 384static
@@ -558,8 +558,9 @@ void i2400m_report_hook(struct i2400m *i2400m,
558 * processing should be done in the function that calls the 558 * processing should be done in the function that calls the
559 * command. This is here for some cases where it can't happen... 559 * command. This is here for some cases where it can't happen...
560 */ 560 */
561void i2400m_msg_ack_hook(struct i2400m *i2400m, 561static void i2400m_msg_ack_hook(struct i2400m *i2400m,
562 const struct i2400m_l3l4_hdr *l3l4_hdr, size_t size) 562 const struct i2400m_l3l4_hdr *l3l4_hdr,
563 size_t size)
563{ 564{
564 int result; 565 int result;
565 struct device *dev = i2400m_dev(i2400m); 566 struct device *dev = i2400m_dev(i2400m);
@@ -674,7 +675,7 @@ void i2400m_msg_to_dev_cancel_wait(struct i2400m *i2400m, int code)
674 * - the ack message wasn't formatted correctly 675 * - the ack message wasn't formatted correctly
675 * 676 *
676 * The returned skb has been allocated with wimax_msg_to_user_alloc(), 677 * The returned skb has been allocated with wimax_msg_to_user_alloc(),
677 * it contains the reponse in a netlink attribute and is ready to be 678 * it contains the response in a netlink attribute and is ready to be
678 * passed up to user space with wimax_msg_to_user_send(). To access 679 * passed up to user space with wimax_msg_to_user_send(). To access
679 * the payload and its length, use wimax_msg_{data,len}() on the skb. 680 * the payload and its length, use wimax_msg_{data,len}() on the skb.
680 * 681 *
@@ -1135,7 +1136,7 @@ error_alloc:
1135 * i2400m_report_state_hook() to parse the answer. This will set the 1136 * i2400m_report_state_hook() to parse the answer. This will set the
1136 * carrier state, as well as the RF Kill switches state. 1137 * carrier state, as well as the RF Kill switches state.
1137 */ 1138 */
1138int i2400m_cmd_get_state(struct i2400m *i2400m) 1139static int i2400m_cmd_get_state(struct i2400m *i2400m)
1139{ 1140{
1140 int result; 1141 int result;
1141 struct device *dev = i2400m_dev(i2400m); 1142 struct device *dev = i2400m_dev(i2400m);
@@ -1177,8 +1178,6 @@ error_msg_to_dev:
1177error_alloc: 1178error_alloc:
1178 return result; 1179 return result;
1179} 1180}
1180EXPORT_SYMBOL_GPL(i2400m_cmd_get_state);
1181
1182 1181
1183/** 1182/**
1184 * Set basic configuration settings 1183 * Set basic configuration settings
@@ -1190,8 +1189,9 @@ EXPORT_SYMBOL_GPL(i2400m_cmd_get_state);
1190 * right endianess (LE). 1189 * right endianess (LE).
1191 * @arg_size: number of pointers in the @args array 1190 * @arg_size: number of pointers in the @args array
1192 */ 1191 */
1193int i2400m_set_init_config(struct i2400m *i2400m, 1192static int i2400m_set_init_config(struct i2400m *i2400m,
1194 const struct i2400m_tlv_hdr **arg, size_t args) 1193 const struct i2400m_tlv_hdr **arg,
1194 size_t args)
1195{ 1195{
1196 int result; 1196 int result;
1197 struct device *dev = i2400m_dev(i2400m); 1197 struct device *dev = i2400m_dev(i2400m);
@@ -1258,8 +1258,6 @@ none:
1258 return result; 1258 return result;
1259 1259
1260} 1260}
1261EXPORT_SYMBOL_GPL(i2400m_set_init_config);
1262
1263 1261
1264/** 1262/**
1265 * i2400m_set_idle_timeout - Set the device's idle mode timeout 1263 * i2400m_set_idle_timeout - Set the device's idle mode timeout