-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: wifi: nrf_wifi: Add P2P discovery and Client support #97183
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
Open
rado17
wants to merge
24
commits into
zephyrproject-rtos:main
Choose a base branch
from
rado17:p2p_find
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
061e1e6
drivers: wifi: nrf_wifi: Set SSID for P2P discovery
rado17 a161076
drivers: wifi: nrf_wifi: Set P2P capability
rado17 0075c14
net: wifi: Add Wi-Fi direct P2P discovery API support
kapbh 081ac4b
net: wifi: Add Wi-Fi direct P2P discovery shell command support
kapbh 1e765b7
manifest: Update nrf_wifi revision
kapbh c0ffff3
drivers: wifi: nrf_wifi: Add RoC support
rado17 587a678
drivers: wifi: nrf_wifi: Allow off channel TX for probe responses
rado17 009898d
drivers: wifi: nrf_wifi: Register frame without match
rado17 a47a286
modules: hostap: Define heap and stack for P2P support
rado17 c12611c
modules: hostap: Remove obsolete conditional
krish2718 bfb6161
net: wifi: Add Wi-Fi direct P2P connect API support
kapbh f09dfca
net: wifi: Add Wi-Fi direct P2P connect shell command support
kapbh e746803
drivers: nrf_wifi: Add default value to p2p mode Kconfig
kapbh be26ca2
doc: networking: Add Wi-Fi P2P info
kapbh c336bee
modules: hostap: Add support for P2P GO mode ops
rado17 30a9fa8
modules: hostap: Increase hostap heap size
rado17 f06af4f
drivers: wifi: nrf_wifi: Add per-peer authorized flag
rado17 dc4fdc0
net: wifi: Add API support for P2P GO mode
kapbh d4e1d39
net: wifi: Add Wi-Fi direct P2P GO mode shell command
kapbh c154c87
drivers: wifi: nrf_wifi: Add P2P powersave support
rado17 d8870f2
drivers: wifi: nrf_wifi: Add cookie handling support
rado17 6a12e53
manifest: hostap: Pull in P2P powersave support
rado17 25f8228
net: wifi: Add API support for P2P power save
kapbh 289c450
net: wifi: Add P2P power save shell command support
kapbh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,6 +25,7 @@ LOG_MODULE_DECLARE(wifi_nrf, CONFIG_WIFI_NRF70_LOG_LEVEL); | |
|
|
||
| #include "util.h" | ||
| #include "common/fmac_util.h" | ||
| #include "system/fmac_peer.h" | ||
| #include "shim.h" | ||
| #include "fmac_main.h" | ||
| #include "wpa_supp_if.h" | ||
|
|
@@ -388,6 +389,8 @@ int nrf_wifi_if_send(const struct device *dev, | |
| struct rpu_host_stats *host_stats = NULL; | ||
| void *nbuf = NULL; | ||
| bool locked = false; | ||
| unsigned char *ra = NULL; | ||
| int peer_id = -1; | ||
|
|
||
| if (!dev || !pkt) { | ||
| LOG_ERR("%s: vif_ctx_zep is NULL", __func__); | ||
|
|
@@ -436,12 +439,20 @@ int nrf_wifi_if_send(const struct device *dev, | |
| nbuf); | ||
| } else { | ||
| #endif /* CONFIG_NRF70_RAW_DATA_TX */ | ||
|
|
||
| ra = nrf_wifi_util_get_ra(sys_dev_ctx->vif_ctx[vif_ctx_zep->vif_idx], nbuf); | ||
| peer_id = nrf_wifi_fmac_peer_get_id(rpu_ctx_zep->rpu_ctx, ra); | ||
| if (peer_id == -1) { | ||
| nrf_wifi_osal_log_err("%s: Invalid peer", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. log |
||
| __func__); | ||
| goto out; | ||
| } | ||
|
|
||
| if ((vif_ctx_zep->if_carr_state != NRF_WIFI_FMAC_IF_CARR_STATE_ON) || | ||
| (!vif_ctx_zep->authorized && !is_eapol(pkt))) { | ||
| (!sys_dev_ctx->tx_config.peers[peer_id].authorized && !is_eapol(pkt))) { | ||
| ret = -EPERM; | ||
| goto drop; | ||
| } | ||
|
|
||
| ret = nrf_wifi_fmac_start_xmit(rpu_ctx_zep->rpu_ctx, | ||
| vif_ctx_zep->vif_idx, | ||
| nbuf); | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not ROC complete, it's ROC ready on channel.