BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mangoh-drivers
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
mangoh-drivers
Commits
73bc58f8
Commit
73bc58f8
authored
Sep 05, 2017
by
David Clark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates after getting AP mode working
parent
3427dfc1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
12 deletions
+11
-12
mt7697wifi_core.mdef
linux_kernel_modules/mt7697wifi/mt7697wifi_core.mdef
+1
-1
txrx.c
linux_kernel_modules/mt7697wifi/txrx.c
+5
-5
wmi.c
linux_kernel_modules/mt7697wifi/wmi.c
+5
-6
No files found.
linux_kernel_modules/mt7697wifi/mt7697wifi_core.mdef
View file @
73bc58f8
...
...
@@ -9,7 +9,7 @@ sources:
cflags:
{
-DDEBUG
//
-DDEBUG
-DCONFIG_WIRELESS_EXT
-DCONFIG_CFG80211_WEXT
-I$MANGOH_ROOT/linux_kernel_modules/mt7697q
...
...
linux_kernel_modules/mt7697wifi/txrx.c
View file @
73bc58f8
...
...
@@ -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
;
...
...
linux_kernel_modules/mt7697wifi/wmi.c
View file @
73bc58f8
...
...
@@ -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__
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment