This problem is because Huawei P50 pro doesn't support 2.4 Ghz frequency , why! the problem with hardware not software its may be factory issue, so to fix your problem you need to connect your phone on 5Ghz frequency WiFi, which is need your home AP or router WiFi support this feature. mostly...