X-Git-Url: http://bbs.cooldavid.org/git/?p=jme.git;a=blobdiff_plain;f=jme.h;h=3dafe833ba2b284696f8adcb60f47995877fb3ec;hp=9b9e61964e2f7830d57cea9a7d07a2b05b2fcd78;hb=8588b84ba1ccfa3e442fe44cf5cc3e6c49a6d430;hpb=678e26f972b0bbc9e822a6b9292c11bb651a95e0 diff --git a/jme.h b/jme.h index 9b9e619..3dafe83 100644 --- a/jme.h +++ b/jme.h @@ -535,6 +535,13 @@ static inline struct tcphdr *tcp_hdr(const struct sk_buff *skb) #define JME_NEW_PM_API #endif +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,26) +static inline __u32 ethtool_cmd_speed(struct ethtool_cmd *ep) +{ + return ep->speed; +} +#endif + /* * Jmac Adapter Private data */