My father-in-law smiled and waved at a CHP cop when driving through California and got pulled over and told that was illegal, but was let off with a warning. Which I always thought was bullshit. Sounds like it is.
But the guy liked cops. He was literally just saying hi to a cop because he liked cops.