Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mac80211: fix IBSS/adhoc mode for brcmfmac
On systems using brmcfmac (e.g. Raspberry Pi Zero W) without this fix, the final setup-call: iw dev wlan0 ibss join ... fails with returncode 161 and message: "command failed: Not supported (-95)" So this patch calls an explicit: iw dev wlan0 set type ibss just prior to the 'ibss join' command. I have tested several ath9k and mt76xx devices with different revisions: this patch does not harm. please also apply to stable branch. Signed-off-by: Bastian Bittorf <bb@npl.de>
- Loading branch information
ea5fce3
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.
Could also apply to banana pi r64. However, it still works.
ea5fce3
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.
On mac80211-based drivers this generally shouldn't do any harm, it's just redundant. On less capable drivers offering only cfg80211 (brcmfmac, wil6120, ...) and a single network device the call is needed as removing/adding the interface with a given type always fails, hence the new type is not applied.
ea5fce3
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.
@dangowrt Thanks for your response. Yeah but I was also seeing this
"command failed: Not supported (-95)"
warnings. So I am happy, that this fixed! :)