Skip to content

Commit

Permalink
Added Nethunter 🐉
Browse files Browse the repository at this point in the history
* enabled nethunter wireless drivers
* enabled virtual bluetooth (hci0)
* hid support
* disabled KernelSu
* added nh_defconfig
  • Loading branch information
shadowe1ite committed Oct 7, 2023
1 parent 4d16a67 commit eb730e2
Show file tree
Hide file tree
Showing 8 changed files with 6,057 additions and 14 deletions.
6,043 changes: 6,043 additions & 0 deletions arch/arm64/configs/vendor/nh_defconfig

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export KBUILD_BUILD_HOST=elite
PATH=$PWD/toolchain/bin:$PATH

rm -rf out
make O=out CROSS_COMPILE=aarch64-linux-gnu- LLVM=1 -j$(nproc) vendor/SE_defconfig #chime_defconfig
make O=out CROSS_COMPILE=aarch64-linux-gnu- LLVM=1 -j$(nproc) vendor/nh_defconfig #chime_defconfig
make O=out CROSS_COMPILE=aarch64-linux-gnu- LLVM=1 -j$(nproc) 2>&1 menuconfig
toilet -f future --filter border:metal BUILD START | lolcat
make O=out CROSS_COMPILE=aarch64-linux-gnu- LLVM=1 -j$(nproc) 2>&1 | tee ./out/build.log
toilet -f future --filter border:metal BUILD END | lolcat
toilet -f future --filter border:metal BUILD END | lolcat
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/htc_drv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static inline int ath9k_htc_connect_svc(struct ath9k_htc_priv *priv,
req.ep_callbacks.rx = ath9k_htc_rxep;
req.ep_callbacks.tx = tx;

return htc_connect_service(priv->htc, &req, ep_id);
return htc_connect_service_hst(priv->htc, &req, ep_id);
}

static int ath9k_init_htc_services(struct ath9k_htc_priv *priv, u16 devid,
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ath/ath9k/htc_drv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void ath9k_htc_reset(struct ath9k_htc_priv *priv)
WMI_CMD_BUF(WMI_SET_MODE_CMDID, &htc_mode);

WMI_CMD(WMI_ENABLE_INTR_CMDID);
htc_start(priv->htc);
htc_start_hst(priv->htc);
ath9k_htc_vif_reconfig(priv);
ieee80211_wake_queues(priv->hw);

Expand Down Expand Up @@ -302,7 +302,7 @@ static int ath9k_htc_set_channel(struct ath9k_htc_priv *priv,
if (ret)
goto err;

htc_start(priv->htc);
htc_start_hst(priv->htc);

if (!test_bit(ATH_OP_SCANNING, &common->op_flags) &&
!(hw->conf.flags & IEEE80211_CONF_OFFCHANNEL))
Expand Down Expand Up @@ -955,7 +955,7 @@ static int ath9k_htc_start(struct ieee80211_hw *hw)
"Failed to update capability in target\n");

clear_bit(ATH_OP_INVALID, &common->op_flags);
htc_start(priv->htc);
htc_start_hst(priv->htc);

spin_lock_bh(&priv->tx.tx_lock);
priv->tx.flags &= ~ATH9K_HTC_OP_TX_QUEUES_STOP;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ void ath9k_htc_tx_drain(struct ath9k_htc_priv *priv)
* Ensure that all pending TX frames are flushed,
* and that the TX completion/failed tasklets is killed.
*/
htc_stop(priv->htc);
htc_stop_hst(priv->htc);
tasklet_kill(&priv->wmi->wmi_event_tasklet);
tasklet_kill(&priv->tx_failed_tasklet);

Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ath/ath9k/htc_hst.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ int htc_init(struct htc_target *target)
return htc_setup_complete(target);
}

int htc_connect_service(struct htc_target *target,
int htc_connect_service_hst(struct htc_target *target,
struct htc_service_connreq *service_connreq,
enum htc_endpoint_id *conn_rsp_epid)
{
Expand Down Expand Up @@ -307,12 +307,12 @@ int htc_send_epid(struct htc_target *target, struct sk_buff *skb,
return htc_issue_send(target, skb, skb->len, 0, epid);
}

void htc_stop(struct htc_target *target)
void htc_stop_hst(struct htc_target *target)
{
target->hif->stop(target->hif_dev);
}

void htc_start(struct htc_target *target)
void htc_start_hst(struct htc_target *target)
{
target->hif->start(target->hif_dev);
}
Expand Down
6 changes: 3 additions & 3 deletions drivers/net/wireless/ath/ath9k/htc_hst.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ struct htc_comp_msg {
} __packed;

int htc_init(struct htc_target *target);
int htc_connect_service(struct htc_target *target,
int htc_connect_service_hst(struct htc_target *target,
struct htc_service_connreq *service_connreq,
enum htc_endpoint_id *conn_rsp_eid);
int htc_send(struct htc_target *target, struct sk_buff *skb);
int htc_send_epid(struct htc_target *target, struct sk_buff *skb,
enum htc_endpoint_id epid);
void htc_stop(struct htc_target *target);
void htc_start(struct htc_target *target);
void htc_stop_hst(struct htc_target *target);
void htc_start_hst(struct htc_target *target);
void htc_sta_drain(struct htc_target *target, u8 idx);

void ath9k_htc_rx_msg(struct htc_target *htc_handle,
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int ath9k_wmi_connect(struct htc_target *htc, struct wmi *wmi,
connect.ep_callbacks.rx = ath9k_wmi_ctrl_rx;
connect.service_id = WMI_CONTROL_SVC;

ret = htc_connect_service(htc, &connect, &wmi->ctrl_epid);
ret = htc_connect_service_hst(htc, &connect, &wmi->ctrl_epid);
if (ret)
return ret;

Expand Down

0 comments on commit eb730e2

Please sign in to comment.