Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modified the code to be compiled directly.
1. Removed linux version checking. 2. Removed unused files. Signed-off-by: David Lin <dlin@marvell.com>
- Loading branch information
1 parent
5220b86
commit 265d314
Showing
8 changed files
with
0 additions
and
114 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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
265d314
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.
Does this mean that from this version, the driver doesn't support kernel 3.18?
Because I failed to compile it by using SDK of 15.05.1:
265d314
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.
For OpenWrt, mwlwifi is built with compatible (backports) wireless package. It is possible that the compatible (backports) wireless package you used is old version. You can modify this driver to work with previous version of compatible (backports) wireless package. For example, you can use previous way to set flags (hw->flags |= IEEE80211_HW_AMPDU_AGGREGATION;).
265d314
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.
Another way is that you can update your compatible (backports) wireless package. Backports package is used to let updated drivers to work on old kernel.
265d314
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.
The package that you should update: package/kernel/mac80211.
265d314
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.
@yuhhaurlin openwrt has not received the mac80211 updates yet. Right now only LEDE has the updated packages, CC is still the stable Openwrt release meaning we should create an inverse patch to add these checks. Then upload them to CC branch to patch the latest code.
265d314
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.
Also have you added this patch to upstream? https://github.com/lede-project/source/blob/master/package/kernel/mwlwifi/patches/110-api_sync.patch
After trying to use the latest commit to build LEDE it fails at this patch and I was going to fix it but I can't fix it right now.
265d314
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.
Please check README. I modified this driver based on "package/kernel/mac80211" of OpenWrt main trunk.
265d314
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.
Please check README. If version of "package/kernel/mac80211" is 2016-01-10, you just need to rename the folder "patches".
Marvell will base on this version of code to create patch for upstream.
265d314
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.
I changed the API and let the driver accept AMSDU capability from mac80211. But I don't know why it needs to change IEEE80211XXX to NL802XXX. Mac80211 had redefined IEEE802XXX to NL802XXX. I still keep the driver use IEEE802XXX. BTW, you need to use 10.3.0.17-20160601 to have all these modifications. Thanks.
265d314
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.
Why remove Kconfig, McDebian need it.
265d314
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.
The version submitted to upstream will have Kconfig.
265d314
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.
Oh, and we were at a loss - as without Kconfig.
265d314
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.
I had restored files Kconfig and Makefile.kernel.
265d314
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.
Tested on 4.6.0 kernel, everything is fine. Thank you.