@Snowed,
Well, I can kinda see why he's doing this, seeing as he doesn't have another outlet.
So, yay?
A few things.
1) He should be working when he's working from home. Full stop. If it's a company laptop, then he is probably violating company policy. If that machine gets a virus because of the porn, your husband will likely be fired.
And... he'd deserve it.
He also needs to be exceptionally cautious about what's in his clipboard. Everyone who's ever used a computer has accidentally sent the wrong link to someone. What do you think would happen if he oops accidentally sent a porn link to his supervisor?
2) He also shouldn't be masturbating in his SUV in public (the garage is a different story, so long as the door is shut.
Why?
Because exposing himself, even if he has no idea anyone is watching, could land him on the sex offender list.
Which... he would also deserve.
Regardless of what anyone thinks of the sex offender list or if they think it's draconian, etc., the bottom line is that exposing himself would fit the bill of the sex offender list.
3) Talk to your doctor about your own bodily concerns. Explain how you're feeling about your surgical recovery. Surgery is a big deal, even outpatient, and it can be scary. Plus it can be concerning if you experienced a lot of pain and just don't want to risk that pain coming back. Your doctor may have suggestions for you. And one of those suggestions may very well be counseling.
Your husband can come with you, or not, if you do end up in counseling. It would probably be a good idea no matter what your primary care physician says.