Skip to content

Commit

Permalink
Add support for Kernel 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Witi committed Oct 11, 2016
1 parent 7c0dee7 commit f9266f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ typedef enum _NDIS_HOSTAPD_STATUS {

typedef struct __CFG80211_CB {

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 7, 0))
#define ieee80211_band nl80211_band
#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
#define IEEE80211_NUM_BANDS NUM_NL80211_BANDS
#endif

/* we can change channel/rate information on the fly so we backup them */
struct ieee80211_supported_band Cfg80211_bands[IEEE80211_NUM_BANDS];
struct ieee80211_channel *pCfg80211_Channels;
Expand Down

0 comments on commit f9266f1

Please sign in to comment.