]> err.no Git - linux-2.6/blobdiff - net/ax25/ax25_ds_timer.c
[PATCH] SoftMAC: Add network to ieee80211softmac_call_events when associate times out
[linux-2.6] / net / ax25 / ax25_ds_timer.c
index 3a8b67316fc388d31360d999f0ebb35367328cff..5961459935eb4f0d13497b4b6b0ecda79f7ca6dc 100644 (file)
@@ -18,7 +18,7 @@
 #include <linux/string.h>
 #include <linux/sockios.h>
 #include <linux/net.h>
-#include <net/tcp.h>
+#include <net/tcp_states.h>
 #include <net/ax25.h>
 #include <linux/inet.h>
 #include <linux/netdevice.h>
@@ -61,7 +61,8 @@ void ax25_ds_set_timer(ax25_dev *ax25_dev)
                return;
 
        del_timer(&ax25_dev->dama.slave_timer);
-       ax25_dev->dama.slave_timeout = ax25_dev->values[AX25_VALUES_DS_TIMEOUT] / 10;
+       ax25_dev->dama.slave_timeout =
+               msecs_to_jiffies(ax25_dev->values[AX25_VALUES_DS_TIMEOUT]) / 10;
        ax25_ds_add_timer(ax25_dev);
 }