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

[WDI Sample] Refactoring Platform File IO ops to use WDM calls #1142

Conversation

equetzal
Copy link
Member

@equetzal equetzal commented Mar 15, 2024

Why is this change being made?

The current implementation of the WDI driver example uses calls to deprecated NDIS functions: NdisOpenFile, NdisMapFile, NdisUnmapFile, NdisCloseFile.
NDIS have deprecated the use of this functions and stick to only network-related operations which left this file operations not available for ARM64 architecture. Due to the current efforts to support ARM64, we need to refactor pieces of code within this driver to avoid the use of the deprecated NDIS calls such that we have a buildable driver for both x86_64 and ARM64.

What changed?

Refactored PlatformReadFile, PlatformOpenFile, PlatformMapFile, PlatformUnMapFile, PlatformCloseFile and `PlatformReadAndMapFile, to use the WDM calls for file operations and memory operations. This PR is the first step to enable the ARM64 support for this driver.

@JakobL-MSFT
Copy link
Contributor

This PR is into main branch. That branch is closed. Please stage PR to develop branch.

@equetzal equetzal changed the title [WDI Sample] Refactoring PlatformReadFile to use WDF [WDI Sample] Refactoring PlatformReadFile to use WDM calls Mar 19, 2024
@equetzal equetzal force-pushed the user/equetzal/refactor_WDI_Sample_Driver_To_Support_ARM64 branch from a7bb7e3 to 368b9fd Compare March 21, 2024 01:23
@equetzal equetzal changed the base branch from main to user/seromero/network-wlan-arm64 March 21, 2024 01:24
@equetzal equetzal force-pushed the user/equetzal/refactor_WDI_Sample_Driver_To_Support_ARM64 branch from cc72c4f to 7567118 Compare March 21, 2024 20:35
@equetzal equetzal changed the base branch from user/seromero/network-wlan-arm64 to develop March 21, 2024 20:36
@equetzal equetzal marked this pull request as ready for review March 21, 2024 20:58
@equetzal equetzal requested a review from a team as a code owner March 21, 2024 20:58
@NeoAdonis
Copy link
Contributor

For some reason the automated gates didn't trigger. Weird... I'll check if this is an issue with the actions themselves or something in the PR.

I'll approve after checking manually that the sample builds successfully. Keep pursuing review from the Wi-Fi core team, please!

@JakobL-MSFT
Copy link
Contributor

@NeoAdonis . I also was surprised the gates did not work. I would be curious to learn why this is.

@equetzal
Copy link
Member Author

equetzal commented Mar 21, 2024

Ok @JakobL-MSFT, @NeoAdonis , UU just approved from the Wifi Core team. We can merge now.

@equetzal equetzal changed the title [WDI Sample] Refactoring PlatformReadFile to use WDM calls [WDI Sample] Refactoring Platform File IO ops to use WDM calls Mar 21, 2024
@NeoAdonis NeoAdonis merged commit b5a8318 into microsoft:develop Mar 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants