On Mon, 6 Aug 2007, Fernando Toledo wrote:

(sorry for replying late - my mail system had some ZD1211-related trouble 
;-)

> I bassed on these patch and now understand little more how to fix it.
> I create this new patch for back compatibility for kernels < 2.6.22
> (still research for the iw_statics fix)

I'd think that
-       struct iw_statistics *iw_stats = &macp->drv_stats.iw_stats;
+       struct iw_statistics *iw_stats = &macp->device->stats;
without ifdefs will break compilation with older kernels.

Could you try building against 2.6.21 and some older kernel? Perhaps

-       struct iw_statistics *iw_stats = &macp->drv_stats.iw_stats;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
+       struct iw_statistics *iw_stats = &macp->drv_stats.iw_stats;
+#elseif
+       struct iw_statistics *iw_stats = &macp->device->stats;
+#endif

already does the job.

Regards

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Zd1211-devs mailing list - http://zd1211.wiki.sourceforge.net/
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/zd1211-devs

Reply via email to