If it is a straight forward perforation then an operation can be performed.......fascial graft to repair the eardrum....Myringoplasty if it is just the eardrum that needs repairing or Tympanoplasty if the drum and ossicles need repairing................this is no big deal.
However if the perforation is associated with what is known as a cholesteatoma, which I suspect from you account then a more extensive operation, modified radical mastoidectomy is required..........this is a bigger deal.
Only an ENT Consultant will be able to tell you which type of perforation your daughter has.
If the discharge is offensive and smells of rotten cheese, then it is suspicious of a cholesteotoma.
Cholesteotoma is not a tumour, but an ingrowth of skin into the middle ear which erodes bone.