Nethunter Ядро Строительство для Xperia Z2 Зефир - PullRequest
0 голосов
/ 24 октября 2018

Я пытаюсь портировать ядро ​​для источника ядра зефира xperia z2 (shinano_sirius_defconfig) из открытого архива sony, но я получаю ошибки компиляции, пробовал разные цепочки инструментов.*

компилируется со стандартным ядром, но после добавления поддержки 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;

}

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...