Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable set_wiphy_netns cmd to support namespace and fix signal being reported incorrectly by iw dev command #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions os/linux/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,9 @@ static struct wireless_dev *CFG80211_WdevAlloc(
pWdev->wiphy->n_cipher_suites = ARRAY_SIZE(CipherSuites);
#endif /* LINUX_VERSION_CODE */

/* @WIPHY_FLAG_NETNS_OK: if not set, do not allow changing the netns of this wiphy at all */
pWdev->wiphy->flags |=WIPHY_FLAG_NETNS_OK;

if (wiphy_register(pWdev->wiphy) < 0)
{
DBGPRINT(RT_DEBUG_ERROR, ("80211> Register wiphy device fail!\n"));
Expand Down
2 changes: 1 addition & 1 deletion os/linux/cfg80211drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ VOID CFG80211_Scaning(
ChanId,
pFrame,
FrameLen,
RSSI,
RSSI*100,
FlgIsNMode,
BW);
#endif /* CONFIG_STA_SUPPORT */
Expand Down