iw: Allow user to provide freq during mesh join

This patch is taken from ibss join for mesh usage. Also,
originally implemented by Ashok Nagarajan.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>