mac80211: don't call md5sum on non-existing file
authorDaniel Golle <daniel@makrotopia.org>
Thu, 5 Dec 2019 20:17:58 +0000 (21:17 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 8 Dec 2019 18:53:11 +0000 (19:53 +0100)
commit3ee767086d306f8095b7301262b0fe053a0b9f50
treedfcb70bf27cac2df9229ab97643f9620bd6d43c8
parent24b97579d20b6ac6df81654a953386d2912fc324
mac80211: don't call md5sum on non-existing file

If no AP is configured, hostapd-${phy}.conf is not being created,
hence md5sum fails and causes log pollution:

netifd: radio1 (3183): md5sum: can't open '/var/run/hostapd-phy1.conf': No such file or directoy

Hence make sure the file exists when calling md5sum.

Fixes: a5bc9787d4 ("mac80211: add support for dynamically reconfiguring wifi")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh