If you don’t assert your rights, you don’t have ‘em. If you can’t open carry out of fear that a cop will take offence, then you can’t open carry, no matter what the law says.
The cop profiled the guy because he was dressed like a nut and carrying a military style rifle.
Dress like a fool and act like a fool, and cops (and people) will treat you like a fool.