'Set the specified mode for the interface
:param self: A NetworkManager object
:param interface_name: Name of an interface
:param mode: Mode of an interface
:type self: NetworkManager
:type interface_name: str
:type mode: str
:return: None
:rtype: None
.. note: Available modes are unspecified, ibss, managed, AP
AP VLAN, wds, monitor, mesh, p2p'

def set_interface_mode(self, interface_name, mode):

    card = self._name_to_object[interface_name].card
    pyw.down(card)
    pyw.modeset(card, mode)
    pyw.up(card)
