Revert "Revert "adding wifi functions for 16Ch, initial""

This reverts commit 0331c56f5671724f447ee03067991bac53762d0a.
Revert "Revert "bug fixes in wifi functions""

This reverts commit fc7c90391f324ffef08d47ec4e3fdf0778b1c5db.