Wi-Fi monitor mode

Managed mode

ifconfig <interface> down
iwconfig <interface> mode managed
iwconfig <interface> essid <essid>

Ad-hoc Mode

iwconfig <interface> mode ad-hoc
iwconfig <interface> essid <essid> 

Master mode

#Open.conf file
interface=<interface>
driver=nl80211
ssid=<SSID name>
channel=2
hw_mode=g
hostapd open.conf

Mesh mode

iw dev <interface> set type mesh

Monitor mode

ifconfig <interface> down
iw <interface> set monitor control
ifconfig <interface> up 

airmon-ng start <interface>