我试图从索尼开放档案中移植xperia z2(shinano_sirius_defconfig)棉花糖内核源的内核,但出现编译错误 尝试使用ubuntu 14.04 x64
使用其他工具链(doomlord工具链incl linaro,nethunter Wiki上列出的工具链)。它使用常规内核进行编译,但是在添加了nethunter支持/无线支持后,在ath6kl处出现以下错误
drivers/net/wireless/ath/ath6kl/bmi.o
CC drivers/net/wireless/ath/ath6kl/cfg80211.o
drivers/net/wireless/ath/ath6kl/cfg80211.c:2959:2: warning: initialization from incompatible pointer type [enabled by default]
error, forbidden warning: cfg80211.c:2959
make[5]: *** [drivers/net/wireless/ath/ath6kl/cfg80211.o] Error 1
make[4]: *** [drivers/net/wireless/ath/ath6kl] Error 2
make[3]: *** [drivers/net/wireless/ath] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
有帮助吗?
这是文件的内容
.start_ap = ath6kl_start_ap,
.set_channel = ath6kl_set_channel, <--this is the line 2959
.change_beacon = ath6kl_change_beacon,
.stop_ap = ath6kl_stop_ap,
.del_station = ath6kl_del_station,
.change_station = ath6kl_change_station,
.remain_on_channel = ath6kl_remain_on_channel,
.cancel_remain_on_channel = ath6kl_cancel_remain_on_channel,
.mgmt_tx = ath6kl_mgmt_tx,
.mgmt_frame_register = ath6kl_mgmt_frame_register,
.sched_scan_start = ath6kl_cfg80211_sscan_start,
.sched_scan_stop = ath6kl_cfg80211_sscan_stop,
static int ath6kl_set_channel(struct wiphy *wiphy, struct net_device *dev,
struct ieee80211_channel *chan,
enum nl80211_channel_type channel_type)
{
struct ath6kl_vif *vif;
/*
* 'dev' could be NULL if a channel change is required for the hardware
* device itself, instead of a particular VIF.
*
* FIXME: To be handled properly when monitor mode is supported.
*/
if (!dev)
return -EBUSY;
vif = netdev_priv(dev);
if (!ath6kl_cfg80211_ready(vif))
return -EIO;
ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: center_freq=%u hw_value=%u\n",
__func__, chan->center_freq, chan->hw_value);
vif->next_chan = chan->center_freq;
return 0;
}