al177 / esp8089

Linux kernel module driver for the ESP8089 WiFi chip
GNU General Public License v2.0
184 stars 114 forks source link

Fix compile for kernel 4.14.30 #23

Closed devsaurus closed 6 years ago

devsaurus commented 6 years ago

Compilation of esp_sip.c fails on latest kernel 4.14.30 due to the cleanup of rate encoding bits in RX status. Ref. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/include/net/mac80211.h?h=v4.12&id=7fdd69c5af2160236e97668bc1fb7d70855c66ae et al.

This PR aligns the module with recent kernels while maintaining backward compatibility with older kernel versions (changes inspired by https://www.mail-archive.com/lede-dev@lists.infradead.org/msg08605.html).

al177 commented 6 years ago

Verified that this works with the latest Raspbian and the current 4.14.30+ kernel. I'll generate a new dkms package soon.

Thanks for your contribution!