]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix NL80211_CMD_FRAME to not try offchannel without driver support
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 29 Dec 2011 12:15:31 +0000 (14:15 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 29 Dec 2011 12:15:31 +0000 (14:15 +0200)
commitb9fd8ce8040cdbefca9db4e3db62ab51b6c2b192
tree83dd4f40a584157ef8f6059dd4abe6e5413109f9
parente91829f9ac3dd20f493f9d22e665d1f5145ffe99
nl80211: Fix NL80211_CMD_FRAME to not try offchannel without driver support

The offchanok parameter is hardcoded to one in number of paths and that
added NL80211_ATTR_OFFCHANNEL_TX_OK attribute to NL80211_CMD_FRAME
unconditional. cfg80211 rejects this with EINVAL if the driver does not
indicate support for offchannel TX. Fix this by not requesting
offchannel TX depending on driver capabilities. Remain-on-channel
operation was used for those cases anyway, so the additional attribute
was not really needed for these in the first place.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/drivers/driver_nl80211.c