Revert "Revert "wifi: Set the mode at native layer""

This reverts commit 69b60809c4c899bb56062f233c9b8316b7788cd1.