Hi, welcome to the ehealth forum and I am glad to help you.
You seem concerned by the discharge of bad smelling fluid from the right ear and have also made a mention of past ear infections.
You seem to be afflicted with acute exacerbation of chronic otitis media which involves a perforation (hole) in the tympanic membrane and active bacterial infection within the middle ear space for several weeks or more. This disease is much more common in persons with poor Eustachian tube function. Hearing impairment often accompanies this disease.
The first step in treating otitis media is a thorough evaluation by a physician. This will include a history and examination of the ear, nose, and throat. Depending on the individual situation, further testing will include a hearing test, tympanometry (a test that measures the pressure in the middle ear) and CT or MRI scan. Treatment depends upon the stage of the disease. Initially, efforts to control the causes of eustachian tube obstruction, such as allergies or other head and neck infectious problems, may prevent progression of chronic otitis media. Uncomplicated chronic ear fluid is treated with antibiotics, steroids, and/or placement of ventilation tubes.
Surgeries to achieve these objectives include tympanoplasty, mastoidectomy, or tympanomastoidectomy. The ENT doctor or otologist makes an incision within the ear canal or behind the external ear. Part of the mastoid bone is then drilled away to gain access to the middle ear space. The abnormal tissues are removed. If possible, efforts are made to rebuild the eardrum and the sound-conducting bones. It is sometimes necessary, however, to complete the hearing reconstruction at a later date (a second stage) rather than at the same time as removal of the infected or damaged parts. Patients are usually discharged from the hospital on the same day or one day after surgery.
Healing after surgery takes several months. In 90 percent of cases, surgery is successful in repairing the eardrum and a dry, healthy ear results. Hearing improvement is more difficult to predict and varies greatly depending on the severity of the disease, including the presence of cholesteatoma, ossicular erosion, mastoid disease, and eustachian tube function.You must consult your ENT doctor for thorough evaluation and diagnosis as the same cannot be made online.
Hope this helps. Take care.
Note: This post is not to emphasise final diagnosis as the same cannot be made online and is aimed just to provide medical information and no treatment suggested above be taken without face to face consultation with health care professional.