open an ieee80211 device
The function moep_dev_ieee80211_open() is used to open an ieee80211 device.
- Parameters
-
devname | the device name; This can either be the physical device name e.g. 'phy0' or an interface name e.g. 'wlan1'. |
freq | the channel frequency in MHz |
chan_width | the channel width |
freq1 | the first center frequency in MHz; This value may be ignored depending on the channel width. |
freq2 | the second center frequency in MHz; This value may be ignored depending on the channel width. |
mtu | the MTU of the device; This includes all headers. |
- Returns
- This function returns a moep device.
- Return values
-
NULL | on error, errno is set appropriately. |
- Errors
- These are some standard errors generated and returned by this function. Additional errors may be generated and returned from the underlying system calls.
EINVAL | Invalid argument |
EMFILE | Too many open files; Some filedescriptors are too big for select. |
ENOMEM | Not enough memory available |