wireless: Skip directory when generating certificates
authorMaxim Mikityanskiy <maxtram95@gmail.com>
Tue, 7 May 2019 17:28:15 +0000 (20:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Nov 2019 10:27:54 +0000 (11:27 +0100)
commit2d830cf287a59a7569a6fe27d5d05d5e3148c757
tree77a60e21d1cf10418b728a78dc775bf1e4a7a592
parent558d2bdad5f6a0dd65ed7ed4f74419e826a97759
wireless: Skip directory when generating certificates

[ Upstream commit 32b5a2c9950b9284000059d752f7afa164deb15e ]

Commit 715a12334764 ("wireless: don't write C files on failures") drops
the `test -f $$f` check. The list of targets contains the
CONFIG_CFG80211_EXTRA_REGDB_KEYDIR directory itself, and this check used
to filter it out. After the check was removed, the extra keydir option
no longer works, failing with the following message:

od: 'standard input': read error: Is a directory

This commit restores the check to make extra keydir work again.

Fixes: 715a12334764 ("wireless: don't write C files on failures")
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/Makefile