Eugene
2013-01-11 13:18:37 UTC
The hostapd do not require connection stuff of STA.
The following commands is not required for AP:
- NL80211_CMD_CONNECT
- NL80211_CMD_DISCONNECT
- NL80211_CMD_ASSOCIATE
- NL80211_CMD_DISASSOCIATE
- NL80211_CMD_AUTHENTICATE
- NL80211_CMD_DEAUTHENTICATE
But the common code require support some of them.
As result the devices with AP only mode can not be initialized, with
error "nl80211: Driver does not support authentication/association or
connect commands".
That patch solve that problem.
BTW:
I think that more parts of nl80211 driver code can be hidden by
"#ifndef HOSTAPD".
Am I right?
Or there are present some internal rules, like minimize conditional compilation?
The following commands is not required for AP:
- NL80211_CMD_CONNECT
- NL80211_CMD_DISCONNECT
- NL80211_CMD_ASSOCIATE
- NL80211_CMD_DISASSOCIATE
- NL80211_CMD_AUTHENTICATE
- NL80211_CMD_DEAUTHENTICATE
But the common code require support some of them.
As result the devices with AP only mode can not be initialized, with
error "nl80211: Driver does not support authentication/association or
connect commands".
That patch solve that problem.
BTW:
I think that more parts of nl80211 driver code can be hidden by
"#ifndef HOSTAPD".
Am I right?
Or there are present some internal rules, like minimize conditional compilation?