Thanks for query,
Eating pan masala is one of the factor to develop cancer.
This time you have middle ear infection
may be due to infection.This is not cancer.You consult ENT .he will examine your ear & if he found any perforation he advised you accordingly for need of Tympanplasty or Mastoidectomy
This is not cancer but your habit of eating masala containg sopari causes irritation may lead to you towards it.