So I think I solved my problem. Maybe you smart people can tell me if I’m right.
I usually have no problem connecting my iPhone to wifi. But I had trouble in the BA LHR lounges and the LHR public website.
When I arrived at my Marriott hotel in Abu Dhabi, I had no trouble connecting, and had no trouble at the restaurants, malls, and other public venues. Same for all the public wifi in Dubai.
When I arrived at DXB, however, I could not get access to the public wifi. I then went into one of the non-BA lounges and again got on without difficulty. But when I went to the BA lounge, I had the same problem.
I tried all the fixes discussed in this thread without any luck. But I noticed that the BA wifi is provided by a company called Boingo. I have a Boingo app on my phone which I haven’t used in years, but I pulled up the app, fortunately remember my login credentials, and was able to access the BA wifi using the Boingo app.
All this is to say that I am speculating that that app somehow interferes with the normal BA wifi connection. I’m also speculating that Boingo also provides the wifi service for LHR and DXB.
What do you think?