From: Prasanna S.Panchamukhi Date: Mon, 18 Jan 2010 22:28:23 +0000 (-0800) Subject: wimax/i2400m: fix incorrect return -ESHUTDOWN when there is no Tx buffer available X-Git-Tag: v2.6.35-rc1~473^2~99^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4818d14de36228a749f714b450a85c1b35542e6f;p=pandora-kernel.git wimax/i2400m: fix incorrect return -ESHUTDOWN when there is no Tx buffer available i2400m_tx() routine was returning -ESHUTDOWN even when there was no Tx buffer available. This patch fixes the i2400m_tx() to return -ESHUTDOWN only when the device is down(i2400m->tx_buf is NULL) and also to return -ENOSPC when there is no Tx buffer. Error seen in the kernel log. kernel: i2400m_sdio mmc0:0001:1: can't send message 0x5606: -108 kernel: i2400m_sdio mmc0:0001:1: Failed to issue 'Enter power save'command: -108 Signed-off-by: Prasanna S.Panchamukhi --- Reading git-diff-tree failed