IP undergraduate question

I am currently in my undergrad at the University of North Texas and I had a question about what I should be majoring in to stay on the correct path. I want to pursue a career in IP law, is there anything in particular I should choose as my major to give me the correct background?

Thanks!

Computer Science or Electrical Engineering. With a high GPA, of course.

Any engineering will serve. Electrical is hot right now