Merge "qca-wifi: Add conditional check to avoid fault"