BigW Consortium Gitlab

Commit 73bc58f8 by David Clark

Updates after getting AP mode working

parent 3427dfc1
......@@ -9,7 +9,7 @@ sources:
cflags:
{
-DDEBUG
// -DDEBUG
-DCONFIG_WIRELESS_EXT
-DCONFIG_CFG80211_WEXT
-I$MANGOH_ROOT/linux_kernel_modules/mt7697q
......
......@@ -34,8 +34,8 @@ static int mt7697_ethernet_to_80211(struct sk_buff *skb,
dev_dbg(cfg->dev, "%s(): Tx 802.3 Frame len(%u)\n",
__func__, skb->len);
print_hex_dump(KERN_DEBUG, DRVNAME" 802.3 Frame ", DUMP_PREFIX_OFFSET,
16, 1, skb->data, skb->len, 0);
// print_hex_dump(KERN_DEBUG, DRVNAME" 802.3 Frame ", DUMP_PREFIX_OFFSET,
// 16, 1, skb->data, skb->len, 0);
fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA);
......@@ -56,7 +56,7 @@ static int mt7697_ethernet_to_80211(struct sk_buff *skb,
/* DA BSSID SA */
hdr.frame_control = fc;
memcpy(hdr.addr1, eth_hdr->h_dest, ETH_ALEN);
memcpy(hdr.addr2, vif->bssid, ETH_ALEN);
memcpy(hdr.addr2, cfg->mac_addr.addr, ETH_ALEN);
memcpy(hdr.addr3, eth_hdr->h_source, ETH_ALEN);
break;
......@@ -87,8 +87,8 @@ static int mt7697_ethernet_to_80211(struct sk_buff *skb,
dev_dbg(cfg->dev, "%s(): Tx 802.11 Frame len(%u)\n",
__func__, skb->len);
print_hex_dump(KERN_DEBUG, DRVNAME" <-- Tx 802.11 Frame ",
DUMP_PREFIX_OFFSET, 16, 1, skb->data, skb->len, 0);
// print_hex_dump(KERN_DEBUG, DRVNAME" <-- Tx 802.11 Frame ",
// DUMP_PREFIX_OFFSET, 16, 1, skb->data, skb->len, 0);
cleanup:
return ret;
......
......@@ -619,7 +619,7 @@ static int mt7697_proc_connect_ind(const struct mt7697q_rsp_hdr* rsp,
}
}
else {
// struct station_info sinfo = {0};
struct station_info sinfo = {0};
vif = mt7697_get_vif_by_idx(cfg, 0);
if (!vif) {
......@@ -629,7 +629,6 @@ static int mt7697_proc_connect_ind(const struct mt7697q_rsp_hdr* rsp,
goto cleanup;
}
// cfg80211_new_sta(vif->ndev, bssid, &sinfo, GFP_KERNEL);
ret = mt7697_cfg80211_new_sta(vif, bssid);
if (ret < 0) {
dev_err(cfg->dev,
......@@ -638,12 +637,12 @@ static int mt7697_proc_connect_ind(const struct mt7697q_rsp_hdr* rsp,
goto cleanup;
}
netif_wake_queue(vif->ndev);
cfg80211_new_sta(vif->ndev, bssid, &sinfo, GFP_KERNEL);
/* Update connect & link status atomically */
spin_lock_bh(&vif->if_lock);
set_bit(CONNECTED, &vif->flags);
clear_bit(CONNECT_PEND, &vif->flags);
netif_wake_queue(vif->ndev);
netif_carrier_on(vif->ndev);
spin_unlock_bh(&vif->if_lock);
}
......@@ -793,8 +792,8 @@ static int mt7697_rx_raw(const struct mt7697q_rsp_hdr* rsp,
goto cleanup;
}
print_hex_dump(KERN_DEBUG, DRVNAME" RX ", DUMP_PREFIX_OFFSET,
16, 1, cfg->rx_data, rsp->result, 0);
// print_hex_dump(KERN_DEBUG, DRVNAME" RX ", DUMP_PREFIX_OFFSET,
// 16, 1, cfg->rx_data, rsp->result, 0);
if (list_empty(&cfg->vif_list)) {
dev_dbg(cfg->dev, "%s(): no interfaces\n", __func__);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment