Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
openwrt-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Feed
openwrt-core
Commits
118695f5
Commit
118695f5
authored
11 months ago
by
Erik Karlsson
Browse files
Options
Downloads
Patches
Plain Diff
iwinfo: fix warnings and whitespace
parent
7fb3d9d2
No related branches found
Branches containing commit
No related tags found
1 merge request
!568
iwinfo: do not restrict DFS channels and add missing band and mhz properties
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
package/network/utils/iwinfo/src/iwinfo_esl.c
+2
-11
2 additions, 11 deletions
package/network/utils/iwinfo/src/iwinfo_esl.c
with
2 additions
and
11 deletions
package/network/utils/iwinfo/src/iwinfo_esl.c
+
2
−
11
View file @
118695f5
...
...
@@ -104,7 +104,6 @@ static int phy_to_netdev(const char *phy, char *netdev, size_t size)
int
ret
=
-
1
;
DIR
*
d
;
ifstatus_t
ifstatus
=
0
;
enum
wifi_mode
mode
;
memset
(
netdev
,
0
,
size
);
...
...
@@ -115,7 +114,7 @@ static int phy_to_netdev(const char *phy, char *netdev, size_t size)
}
/* Get real phy in case someone pass netdev */
if
(
netdev_to_phy
(
phy
,
rphy
,
sizeof
(
rphy
)))
if
(
netdev_to_phy
(
phy
,
rphy
,
sizeof
(
rphy
)))
return
-
1
;
snprintf
(
path
,
sizeof
(
path
),
"/sys/class/ieee80211/%s/device/net"
,
rphy
);
...
...
@@ -503,18 +502,12 @@ static int esl_get_phyname(const char *ifname, char *buf)
return
ret
;
}
static
int
esl_get_enctype
(
const
char
*
ifname
,
char
*
buf
)
{
esl_debug
(
"%s() -------->
\n
"
,
__func__
);
return
-
1
;
}
static
int
esl_get_assoclist
(
const
char
*
ifname
,
char
*
buf
,
int
*
len
)
{
char
netdev
[
16
];
unsigned
char
stas
[
768
]
=
{
0
};
/* 128 */
struct
wifi_sta
sx
;
int
noise
,
rssi
,
snr
;
int
noise
,
rssi
;
enum
wifi_bw
bw
;
int
num
=
128
;
int
ret
;
...
...
@@ -541,7 +534,6 @@ static int esl_get_assoclist(const char *ifname, char *buf, int *len)
wifi_get_noise
(
ifname
,
&
noise
);
wifi_get_bandwidth
(
ifname
,
&
bw
);
rssi
=
sx
.
rssi
[
0
];
snr
=
rssi
-
noise
;
memset
(
ent
,
0
,
sizeof
(
*
ent
));
memcpy
(
ent
->
mac
,
sx
.
macaddr
,
6
);
...
...
@@ -765,7 +757,6 @@ static int esl_get_countrylist(const char *ifname, char *buf, int *len)
static
int
esl_get_hwmodelist
(
const
char
*
ifname
,
int
*
buf
)
{
uint8_t
std
=
0
;
char
netdev
[
16
];
int
ret
;
int
i
;
int
std_arr
[]
=
{
IWINFO_80211_B
,
...
...
This diff is collapsed.
Click to expand it.
Erik Karlsson
@erik.karlsson
mentioned in commit
a22622c3
·
11 months ago
mentioned in commit
a22622c3
mentioned in commit a22622c3551ef2dbfac636c3b6484fde436a1715
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment