Glad you got that sorted John. Just wanted to mention that I did somewhat similar - wanted to "move the WiFi 10ft away to the top of the HMI box" since that's the highest point of the machine. Looked at external antennas but none had a cable long enough. So have Rpi --> industrial USB hub --> 10ft USB cable to a tiny
8821CU
dongle with the antenna sticking out of the HMI. Trap for young players: that particular dongle already has a driver included in the Rpi .iso, but that driver absolutely
would not work. Had to follow the directions at the link to compile a special new driver for it. After a lot of head-scratching and configuration, have the on-board WiFi disabled and the dongle enabled, and it works a treat. Cheers.