nl80211: Fix send commands to return 0 on success
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 24 Nov 2010 12:58:58 +0000 (14:58 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 24 Nov 2010 12:58:58 +0000 (14:58 +0200)
commitebbec8b2facab43634ed3b03f6bb48adcede410e
tree75f6834b0d1d18d4d9139beaffa4aaf718417cf8
parent1d39378a0b442ef07263aed817a783622f5952bb
nl80211: Fix send commands to return 0 on success

driver.h defines these functions to return 0 on success, not
number of bytes transmitted. Most callers are checking "< 0" for
error condition, but not all. Address this by following the driver
API specification on 0 meaning success.
src/drivers/driver_nl80211.c