|
@@ -106,23 +106,18 @@ static int rtw_android_get_link_speed(struct net_device *net, char *command,
|
|
|
int total_len)
|
|
|
{
|
|
|
struct adapter *padapter = (struct adapter *)rtw_netdev_priv(net);
|
|
|
- int bytes_written;
|
|
|
u16 link_speed;
|
|
|
|
|
|
link_speed = rtw_get_cur_max_rate(padapter) / 10;
|
|
|
- bytes_written = snprintf(command, total_len, "LinkSpeed %d",
|
|
|
+ return snprintf(command, total_len, "LinkSpeed %d",
|
|
|
link_speed);
|
|
|
- return bytes_written;
|
|
|
}
|
|
|
|
|
|
static int rtw_android_get_macaddr(struct net_device *net, char *command,
|
|
|
int total_len)
|
|
|
{
|
|
|
- int bytes_written;
|
|
|
-
|
|
|
- bytes_written = snprintf(command, total_len, "Macaddr = %pM",
|
|
|
+ return snprintf(command, total_len, "Macaddr = %pM",
|
|
|
net->dev_addr);
|
|
|
- return bytes_written;
|
|
|
}
|
|
|
|
|
|
static int android_set_cntry(struct net_device *net, char *command,
|