A device for mounting an antenna to a rail, comprising: a first clamp component having a first sidewall and a second sidewall coupled by a first middle portion, the first and second sidewalls (702A, 704A) extending from two opposing ends of the first middle portion such that the first sidewall is opposed to the second sidewall, the first and second sidewalls (702A, 704A) comprising a first and a second cutout area (716A, 716C) configured to fit to a first portion of the rail; a second clamp component having a third sidewall and a fourth sidewall coupled by a second middle portion, the third and fourth sidewalls (702B, 704B) extending from two opposing ends of the second middle portion such that the third sidewall is opposed to the fourth sidewall, the third and fourth sidewalls (702B, 704B) comprising a third and a fourth cutout area (716B, 716D) being configured to fit to a second portion of the rail; wherein each cutout area (716A, 716B, 716C, 716D) has a stepped pattern and the first clamp component and the second clamp component are arranged to be opposite to each other such that the rail is held in the patterned cutout areas (716A, 716B, 716C, 716D) of the first and second clamp components (720A, 720B); wherein the first middle portion and the second middle portion each have a first through-hole in a center, a second through-hole and a third through-hole on each side of the first through-hole, the first, second and third through-holes (710A, 710B, 710C) are spaced apart along a longitudinal axis, and the second and third through-holes (710A, 710B) are elongated along a transverse direction to the longitudinal axis; wherein the first through-hole is configured to attach the first clamp component to a foot section for mounting the antenna through a first fastener; a second fastener and a third fastener arranged to attach the first clamp component to the second clamp component when the rail is situated between the first and second clamp components (720A, 720B); wherein the second and third through-holes (710A, 710B) are configured to accept the second and third fasteners (730A, 730B); in a first assembling configuration, a portion of the first sidewall overlaps with a portion of the third sidewall such that the first sidewall is against the third sidewall when the rail is held between the first and second clamp components (720A, 720B); and in a second assembling configuration, the first sidewall and the third sidewall do not overlap and the first sidewall and the third sidewall are aligned in an orientation substantially parallel to the sidewalls (702A, 702B) and in the same plane when the rail is held between the first and second clamp components (720A, 720B). a first clamp component having a first sidewall and a second sidewall coupled by a first middle portion, the first and second sidewalls (702A, 704A) extending from two opposing ends of the first middle portion such that the first sidewall is opposed to the second sidewall, the first and second sidewalls (702A, 704A) comprising a first and a second cutout area (716A, 716C) configured to fit to a first portion of the rail; a second clamp component having a third sidewall and a fourth sidewall coupled by a second middle portion, the third and fourth sidewalls (702B, 704B) extending from two opposing ends of the second middle portion such that the third sidewall is opposed to the fourth sidewall, the third and fourth sidewalls (702B, 704B) comprising a third and a fourth cutout area (716B, 716D) being configured to fit to a second portion of the rail; wherein each cutout area (716A, 716B, 716C, 716D) has a stepped pattern and the first clamp component and the second clamp component are arranged to be opposite to each other such that the rail is held in the patterned cutout areas (716A, 716B, 716C, 716D) of the first and second clamp components (720A, 720B); wherein the first middle portion and the second middle portion each have a first through-hole in a center, a second through-hole and a third through-hole on each side of the first through-hole, the first, second and third through-holes (710A, 710B, 710C) are spaced apart along a longitudinal axis, and the second and third through-holes (710A, 710B) are elongated along a transverse direction to the longitudinal axis; wherein the first through-hole is configured to attach the first clamp component to a foot section for mounting the antenna through a first fastener; a second fastener and a third fastener arranged to attach the first clamp component to the second clamp component when the rail is situated between the first and second clamp components (720A, 720B); wherein the second and third through-holes (710A, 710B) are configured to accept the second and third fasteners (730A, 730B); in a first assembling configuration, a portion of the first sidewall overlaps with a portion of the third sidewall such that the first sidewall is against the third sidewall when the rail is held between the first and second clamp components (720A, 720B); and in a second assembling configuration, the first sidewall and the third sidewall do not overlap and the first sidewall and the third sidewall are aligned in an orientation substantially parallel to the sidewalls (702A, 702B) and in the same plane when the rail is held between the first and second clamp components (720A, 720B).