Skip to content

Commit

Permalink
Add genl dependency to CI
Browse files Browse the repository at this point in the history
Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed May 1, 2024
1 parent f6d1bfe commit 1e09e69
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-and-test-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ jobs:
libircclient-dev \
libiw-dev \
libnl-3-dev\
libnl-genl-3-dev\
libnl-route-3-dev\
liblua5.3-dev \
libmicrohttpd-dev \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
libircclient-dev \
libiw-dev \
libnl-3-dev\
libnl-genl-3-dev\
libnl-route-3-dev\
liblua5.3-dev \
libmicrohttpd-dev \
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
libircclient-dev \
libiw-dev \
libnl-3-dev\
libnl-genl-3-dev\
libnl-route-3-dev\
liblua5.3-dev \
libmicrohttpd-dev \
Expand Down
7 changes: 4 additions & 3 deletions src/linux.cc
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ void parse_rate_info(struct nlattr *bitrate_attr, char *buf, int buflen) {
{NL80211_RATE_INFO_SHORT_GI, NLA_FLAG});

if (nla_parse_nested(rinfo, NL80211_RATE_INFO_MAX, bitrate_attr,
rate_policy.data())) {
const_cast<nla_policy *>(rate_policy))) {
snprintf(buf, buflen, "failed to parse nested rate attributes!");
return;
}
Expand Down Expand Up @@ -807,7 +807,8 @@ void update_net_interfaces(FILE *net_dev_fp, bool is_first_update,
// FIXME: return;
}
if (nla_parse_nested(sinfo, NL80211_STA_INFO_MAX,
tb[NL80211_ATTR_STA_INFO], stats_policy.data())) {
tb[NL80211_ATTR_STA_INFO],
const_cast<nla_policy *>(stats_policy.data()))) {
fprintf(stderr, "failed to parse nested attributes!\n");
// FIXME: return;
}
Expand Down Expand Up @@ -842,7 +843,7 @@ void update_net_interfaces(FILE *net_dev_fp, bool is_first_update,
if (sinfo[NL80211_STA_INFO_BSS_PARAM]) {
if (nla_parse_nested(binfo, NL80211_STA_BSS_PARAM_MAX,
sinfo[NL80211_STA_INFO_BSS_PARAM],
bss_policy.data())) {
const_cast<nla_policy *>((bss_policy.data()))) {
fprintf(stderr, "failed to parse nested bss parameters!\n");
} else {
printf("\n\tbss flags:\t");
Expand Down

0 comments on commit 1e09e69

Please sign in to comment.