lwfinger / rtl8723bu

Driver for RTL8723BU
283 stars 143 forks source link

Make on Centos 7 fails #80

Open albpal opened 6 years ago

albpal commented 6 years ago

I'm not able to install the drivers.

Kernel: 3.10.0-693.2.2.el7.x86_64 SO CentOS Linux release 7.4.1708

Error logs: make make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.10.0-693.2.2.el7.x86_64/build M=/root/rtl8723bu modules make[1]: Entering directory /usr/src/kernels/3.10.0-693.2.2.el7.x86_64' CC [M] /root/rtl8723bu/core/rtw_cmd.o CC [M] /root/rtl8723bu/core/rtw_security.o CC [M] /root/rtl8723bu/core/rtw_debug.o CC [M] /root/rtl8723bu/core/rtw_io.o CC [M] /root/rtl8723bu/core/rtw_ioctl_query.o CC [M] /root/rtl8723bu/core/rtw_ioctl_set.o CC [M] /root/rtl8723bu/core/rtw_ieee80211.o CC [M] /root/rtl8723bu/core/rtw_mlme.o CC [M] /root/rtl8723bu/core/rtw_mlme_ext.o CC [M] /root/rtl8723bu/core/rtw_wlan_util.o CC [M] /root/rtl8723bu/core/rtw_vht.o CC [M] /root/rtl8723bu/core/rtw_pwrctrl.o CC [M] /root/rtl8723bu/core/rtw_rf.o CC [M] /root/rtl8723bu/core/rtw_recv.o CC [M] /root/rtl8723bu/core/rtw_sta_mgt.o CC [M] /root/rtl8723bu/core/rtw_ap.o CC [M] /root/rtl8723bu/core/rtw_xmit.o CC [M] /root/rtl8723bu/core/rtw_p2p.o CC [M] /root/rtl8723bu/core/rtw_tdls.o CC [M] /root/rtl8723bu/core/rtw_br_ext.o CC [M] /root/rtl8723bu/core/rtw_iol.o CC [M] /root/rtl8723bu/core/rtw_sreset.o CC [M] /root/rtl8723bu/core/rtw_btcoex.o CC [M] /root/rtl8723bu/core/rtw_beamforming.o CC [M] /root/rtl8723bu/core/rtw_odm.o CC [M] /root/rtl8723bu/core/rtw_efuse.o CC [M] /root/rtl8723bu/os_dep/osdep_service.o CC [M] /root/rtl8723bu/os_dep/os_intfs.o /root/rtl8723bu/os_dep/os_intfs.c:699:2: warning: initialization from incompatible pointer type [enabled by default] .ndo_select_queue = rtw_select_queue, ^ /root/rtl8723bu/os_dep/os_intfs.c:699:2: warning: (near initialization for ‘rtw_netdev_ops.<anonymous>.ndo_select_queue’) [enabled by default] CC [M] /root/rtl8723bu/os_dep/usb_intf.o CC [M] /root/rtl8723bu/os_dep/usb_ops_linux.o CC [M] /root/rtl8723bu/os_dep/ioctl_linux.o CC [M] /root/rtl8723bu/os_dep/xmit_linux.o CC [M] /root/rtl8723bu/os_dep/mlme_linux.o CC [M] /root/rtl8723bu/os_dep/recv_linux.o CC [M] /root/rtl8723bu/os_dep/ioctl_cfg80211.o /root/rtl8723bu/os_dep/ioctl_cfg80211.c:78:12: error: ‘IEEE80211_BAND_2GHZ’ undeclared here (not in a function) .band = IEEE80211_BAND_2GHZ, \ ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:136:2: note: in expansion of macro ‘CHAN2G’ CHAN2G(1, 2412, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:87:12: error: ‘IEEE80211_BAND_5GHZ’ undeclared here (not in a function) .band = IEEE80211_BAND_5GHZ, \ ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:153:2: note: in expansion of macro ‘CHAN5G’ CHAN5G(34, 0), CHAN5G(36, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:153:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:153:2: error: (near initialization for ‘rtw_5ghz_a_channels[0].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:153:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:153:2: error: (near initialization for ‘rtw_5ghz_a_channels[1].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:154:2: error: initializer element is not constant CHAN5G(38, 0), CHAN5G(40, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:154:2: error: (near initialization for ‘rtw_5ghz_a_channels[2].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:154:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:154:2: error: (near initialization for ‘rtw_5ghz_a_channels[3].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:155:2: error: initializer element is not constant CHAN5G(42, 0), CHAN5G(44, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:155:2: error: (near initialization for ‘rtw_5ghz_a_channels[4].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:155:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:155:2: error: (near initialization for ‘rtw_5ghz_a_channels[5].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:156:2: error: initializer element is not constant CHAN5G(46, 0), CHAN5G(48, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:156:2: error: (near initialization for ‘rtw_5ghz_a_channels[6].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:156:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:156:2: error: (near initialization for ‘rtw_5ghz_a_channels[7].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:157:2: error: initializer element is not constant CHAN5G(52, 0), CHAN5G(56, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:157:2: error: (near initialization for ‘rtw_5ghz_a_channels[8].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:157:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:157:2: error: (near initialization for ‘rtw_5ghz_a_channels[9].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:158:2: error: initializer element is not constant CHAN5G(60, 0), CHAN5G(64, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:158:2: error: (near initialization for ‘rtw_5ghz_a_channels[10].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:158:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:158:2: error: (near initialization for ‘rtw_5ghz_a_channels[11].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:159:2: error: initializer element is not constant CHAN5G(100, 0), CHAN5G(104, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:159:2: error: (near initialization for ‘rtw_5ghz_a_channels[12].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:159:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:159:2: error: (near initialization for ‘rtw_5ghz_a_channels[13].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:160:2: error: initializer element is not constant CHAN5G(108, 0), CHAN5G(112, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:160:2: error: (near initialization for ‘rtw_5ghz_a_channels[14].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:160:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:160:2: error: (near initialization for ‘rtw_5ghz_a_channels[15].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:161:2: error: initializer element is not constant CHAN5G(116, 0), CHAN5G(120, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:161:2: error: (near initialization for ‘rtw_5ghz_a_channels[16].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:161:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:161:2: error: (near initialization for ‘rtw_5ghz_a_channels[17].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:162:2: error: initializer element is not constant CHAN5G(124, 0), CHAN5G(128, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:162:2: error: (near initialization for ‘rtw_5ghz_a_channels[18].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:162:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:162:2: error: (near initialization for ‘rtw_5ghz_a_channels[19].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:163:2: error: initializer element is not constant CHAN5G(132, 0), CHAN5G(136, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:163:2: error: (near initialization for ‘rtw_5ghz_a_channels[20].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:163:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:163:2: error: (near initialization for ‘rtw_5ghz_a_channels[21].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:164:2: error: initializer element is not constant CHAN5G(140, 0), CHAN5G(149, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:164:2: error: (near initialization for ‘rtw_5ghz_a_channels[22].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:164:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:164:2: error: (near initialization for ‘rtw_5ghz_a_channels[23].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:165:2: error: initializer element is not constant CHAN5G(153, 0), CHAN5G(157, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:165:2: error: (near initialization for ‘rtw_5ghz_a_channels[24].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:165:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:165:2: error: (near initialization for ‘rtw_5ghz_a_channels[25].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:166:2: error: initializer element is not constant CHAN5G(161, 0), CHAN5G(165, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:166:2: error: (near initialization for ‘rtw_5ghz_a_channels[26].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:166:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:166:2: error: (near initialization for ‘rtw_5ghz_a_channels[27].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:167:2: error: initializer element is not constant CHAN5G(184, 0), CHAN5G(188, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:167:2: error: (near initialization for ‘rtw_5ghz_a_channels[28].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:167:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:167:2: error: (near initialization for ‘rtw_5ghz_a_channels[29].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:168:2: error: initializer element is not constant CHAN5G(192, 0), CHAN5G(196, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:168:2: error: (near initialization for ‘rtw_5ghz_a_channels[30].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:168:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:168:2: error: (near initialization for ‘rtw_5ghz_a_channels[31].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:169:2: error: initializer element is not constant CHAN5G(200, 0), CHAN5G(204, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:169:2: error: (near initialization for ‘rtw_5ghz_a_channels[32].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:169:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:169:2: error: (near initialization for ‘rtw_5ghz_a_channels[33].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:170:2: error: initializer element is not constant CHAN5G(208, 0), CHAN5G(212, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:170:2: error: (near initialization for ‘rtw_5ghz_a_channels[34].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:170:2: error: initializer element is not constant /root/rtl8723bu/os_dep/ioctl_cfg80211.c:170:2: error: (near initialization for ‘rtw_5ghz_a_channels[35].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:171:2: error: initializer element is not constant CHAN5G(216, 0), ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:171:2: error: (near initialization for ‘rtw_5ghz_a_channels[36].band’) /root/rtl8723bu/os_dep/ioctl_cfg80211.c:205:2: warning: ‘enum ieee80211_band’ declared inside parameter list [enabled by default] ) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:205:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:204:22: error: parameter 1 (‘band’) has incomplete type enum ieee80211_band band ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:203:41: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static struct ieee80211_supported_band *rtw_spt_band_alloc( ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_spt_band_alloc’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:235:17: error: incompatible types when assigning to type ‘enum nl80211_band’ from type ‘struct ieee80211_channel *’ spt_band->band = band; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_spt_band_free’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:264:20: warning: comparison between pointer and integer [enabled by default] if(spt_band->band == IEEE80211_BAND_2GHZ) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:270:25: warning: comparison between pointer and integer [enabled by default] else if(spt_band->band == IEEE80211_BAND_5GHZ) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_ieee80211_channel_to_frequency’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:339:11: warning: comparison between pointer and integer [enabled by default] if (band == IEEE80211_BAND_5GHZ) { ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_inform_bss’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:457:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:459:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_check_bss’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:577:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:579:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(pnetwork->Configuration.DSConfig, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ibss_indicate_connect’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:652:2: warning: passing argument 3 of ‘cfg80211_ibss_joined’ makes pointer from integer without a cast [enabled by default] cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /root/rtl8723bu/include/osdep_service_linux.h:74:0, from /root/rtl8723bu/include/osdep_service.h:40, from /root/rtl8723bu/include/drv_types.h:32, from /root/rtl8723bu/os_dep/ioctl_cfg80211.c:22: include/net/cfg80211.h:4848:6: note: expected ‘struct ieee80211_channel *’ but argument is of type ‘unsigned int’ void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:652:2: error: too few arguments to function ‘cfg80211_ibss_joined’ cfg80211_ibss_joined(padapter->pnetdev, cur_network->network.MacAddress, GFP_ATOMIC); ^ In file included from /root/rtl8723bu/include/osdep_service_linux.h:74:0, from /root/rtl8723bu/include/osdep_service.h:40, from /root/rtl8723bu/include/drv_types.h:32, from /root/rtl8723bu/os_dep/ioctl_cfg80211.c:22: include/net/cfg80211.h:4848:6: note: declared here void cfg80211_ibss_joined(struct net_device *dev, const u8 *bssid, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:737:4: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:739:4: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_disconnect’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:825:11: error: ‘struct wireless_dev’ has no member named ‘sme_state’ if(pwdev->sme_state==CFG80211_SME_CONNECTING) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:825:24: error: ‘CFG80211_SME_CONNECTING’ undeclared (first use in this function) if(pwdev->sme_state==CFG80211_SME_CONNECTING) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:825:24: note: each undeclared identifier is reported only once for each function it appears in /root/rtl8723bu/os_dep/ioctl_cfg80211.c:828:16: error: ‘struct wireless_dev’ has no member named ‘sme_state’ else if(pwdev->sme_state==CFG80211_SME_CONNECTED) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:828:29: error: ‘CFG80211_SME_CONNECTED’ undeclared (first use in this function) else if(pwdev->sme_state==CFG80211_SME_CONNECTED) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:829:4: error: too few arguments to function ‘cfg80211_disconnected’ cfg80211_disconnected(padapter->pnetdev, 0, NULL, 0, GFP_ATOMIC); ^ In file included from /root/rtl8723bu/include/osdep_service_linux.h:74:0, from /root/rtl8723bu/include/osdep_service.h:40, from /root/rtl8723bu/include/drv_types.h:32, from /root/rtl8723bu/os_dep/ioctl_cfg80211.c:22: include/net/cfg80211.h:5284:6: note: declared here void cfg80211_disconnected(struct net_device *dev, u16 reason, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_scan_done’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:1858:4: error: incompatible type for argument 2 of ‘cfg80211_scan_done’ cfg80211_scan_done(pwdev_priv->scan_request, aborted); ^ In file included from /root/rtl8723bu/include/osdep_service_linux.h:74:0, from /root/rtl8723bu/include/osdep_service.h:40, from /root/rtl8723bu/include/drv_types.h:32, from /root/rtl8723bu/os_dep/ioctl_cfg80211.c:22: include/net/cfg80211.h:4496:6: note: expected ‘struct cfg80211_scan_info *’ but argument is of type ‘bool’ void cfg80211_scan_done(struct cfg80211_scan_request *request, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action_p2p’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4236:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4238:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_p2p_action_public’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4276:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4278:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4306:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:4308:3: warning: passing argument 2 of ‘rtw_ieee80211_channel_to_frequency’ makes integer from pointer without a cast [enabled by default] freq = rtw_ieee80211_channel_to_frequency(channel, IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:334:12: note: expected ‘int’ but argument is of type ‘struct ieee80211_channel *’ static int rtw_ieee80211_channel_to_frequency(int chan, int band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: At top level: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5667:82: warning: ‘enum ieee80211_band’ declared inside parameter list [enabled by default] static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum ieee80211_band band, u8 rf_type) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5667:97: error: parameter 2 (‘band’) has incomplete type static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum ieee80211_band band, u8 rf_type) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5667:13: warning: function declaration isn’t a prototype [-Wstrict-prototypes] static void rtw_cfg80211_init_ht_capab(struct ieee80211_sta_ht_cap *ht_cap, enum ieee80211_band band, u8 rf_type) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_init_wiphy’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5736:23: error: array subscript is not an integer bands = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5736:9: warning: assignment from incompatible pointer type [enabled by default] bands = wiphy->bands[IEEE80211_BAND_2GHZ]; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5743:23: error: array subscript is not an integer bands = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5743:9: warning: assignment from incompatible pointer type [enabled by default] bands = wiphy->bands[IEEE80211_BAND_5GHZ]; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_cfg80211_preinit_wiphy’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5822:14: error: array subscript is not an integer wiphy->bands[IEEE80211_BAND_2GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_2GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5823:14: error: array subscript is not an integer wiphy->bands[IEEE80211_BAND_5GHZ] = rtw_spt_band_alloc(IEEE80211_BAND_5GHZ); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5847:16: error: incompatible types when assigning to type ‘const struct wiphy_wowlan_support *’ from type ‘const struct wiphy_wowlan_support’ wiphy->wowlan = wowlan_stub; ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c: At top level: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5874:2: warning: initialization from incompatible pointer type [enabled by default] .get_station = cfg80211_rtw_get_station, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5874:2: warning: (near initialization for ‘rtw_cfg80211_ops.get_station’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5889:2: warning: initialization from incompatible pointer type [enabled by default] .add_virtual_intf = cfg80211_rtw_add_virtual_intf, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5889:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_virtual_intf’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5902:2: warning: initialization from incompatible pointer type [enabled by default] .add_station = cfg80211_rtw_add_station, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5902:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_station’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5903:2: warning: initialization from incompatible pointer type [enabled by default] .del_station = cfg80211_rtw_del_station, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5903:2: warning: (near initialization for ‘rtw_cfg80211_ops.del_station’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5904:2: warning: initialization from incompatible pointer type [enabled by default] .change_station = cfg80211_rtw_change_station, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5904:2: warning: (near initialization for ‘rtw_cfg80211_ops.change_station’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5920:2: warning: initialization from incompatible pointer type [enabled by default] .mgmt_tx = cfg80211_rtw_mgmt_tx, ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:5920:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’) [enabled by default] /root/rtl8723bu/os_dep/ioctl_cfg80211.c: In function ‘rtw_wdev_free’: /root/rtl8723bu/os_dep/ioctl_cfg80211.c:6021:38: error: array subscript is not an integer rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:6021:2: warning: passing argument 1 of ‘rtw_spt_band_free’ from incompatible pointer type [enabled by default] rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_2GHZ]); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:257:13: note: expected ‘struct ieee80211_supported_band *’ but argument is of type ‘struct ieee80211_channel *’ static void rtw_spt_band_free(struct ieee80211_supported_band *spt_band) ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:6022:38: error: array subscript is not an integer rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:6022:2: warning: passing argument 1 of ‘rtw_spt_band_free’ from incompatible pointer type [enabled by default] rtw_spt_band_free(wdev->wiphy->bands[IEEE80211_BAND_5GHZ]); ^ /root/rtl8723bu/os_dep/ioctl_cfg80211.c:257:13: note: expected ‘struct ieee80211_supported_band *’ but argument is of type ‘struct ieee80211_channel *’ static void rtw_spt_band_free(struct ieee80211_supported_band *spt_band) ^ make[2]: *** [/root/rtl8723bu/os_dep/ioctl_cfg80211.o] Error 1 make[1]: *** [_module_/root/rtl8723bu] Error 2 make[1]: Leaving directory/usr/src/kernels/3.10.0-693.2.2.el7.x86_64' make: *** [modules] Error 2

albpal commented 6 years ago

I had to upgrade to kernel 4.10 from ELRepo and all went fine.