Hi,
HP LaserJet Pro P1102 (USB only): If the 5.1 driver package from the HP support page for this model does not work, there is an updated HP 5.1.1 Printer Software Update download from Apple. It is true that even the System Requirements for the latter download say Not compatible with macOS v12 and newer, but some reports have indicated successful use with macOS 12 versions anyway. So, something like the HP LaserJet Professional P1100 driver (6.9) mentioned in Printer and scanner drivers for Mac - Apple Support could perhaps be worth a try. It may or may not work/install in this case. Look upon it as an experiment. Make sure that you have backup copies of all important files (documents, photos, et cetera) before testing anything.
Reset the printing system on your Mac to solve a problem – Apple Support (UK)
Add a printer to your printer list so you can use it on Mac – Apple Support (UK)
In the event that your printer is an HP LaserJet Pro P1102w (wireless and USB): This model is not mentioned in About AirPrint - Apple Support (US edition, February 18, 2022), but an HP LaserJet P1102w Printer was listed as an AirPrint-supported model in an old (February 13. 2012) iOS: AirPrint 101 Apple article (HT4356). Possibly an early firmware version? A firmware update may be required. There have been printer firmware updates made available via the HP download pages for the HP LaserJet P1102w Printer (but these files will be shown only if macOS 10.14 or earlier is selected).
If the driverless AirPrint technology would work with this printer, one should not have to install drivers from the manufacturer, provided that the printer and the MacBook Air are connected to the same network (Wi-Fi router).
You could use an iPhone/iPad to test a printer's AirPrint capabilities
Use AirPrint to print from your iPhone, iPad, or iPod touch - Apple Support
https://support.hp.com/us-en/product/hp-laserjet-pro-p1102-printer-series/4110394/document/c01999607