From: Ulrich Kunitz <kune@xxxxxxxxxxxxxx> Match behaviour of other drivers by returning -EOPNOTSUPP rather than -1. Signed-off-by: Ulrich Kunitz <kune@xxxxxxxxxxxxxx> Signed-off-by: Daniel Drake <dsd@xxxxxxxxxx> --- drivers/net/wireless/zd1211rw-mac80211/zd_mac.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/wireless/zd1211rw-mac80211/zd_mac.c b/drivers/net/wireless/zd1211rw-mac80211/zd_mac.c index 4f0220b..6288823 100644 --- a/drivers/net/wireless/zd1211rw-mac80211/zd_mac.c +++ b/drivers/net/wireless/zd1211rw-mac80211/zd_mac.c @@ -711,7 +711,7 @@ static int zd_op_add_interface(struct ieee80211_hw *hw, /* NOTE: using IEEE80211_IF_TYPE_MGMT to indicate no mode selected */ if (mac->type != IEEE80211_IF_TYPE_MGMT) - return -1; + return -EOPNOTSUPP; switch (conf->type) { case IEEE80211_IF_TYPE_MNTR: -- 1.5.3 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html