; (2) automated spectrum management to enable greater efficiency and speed for U.S. Customs and Border Protection in addressing emerging challenges in overall spectrum use on the United States border; and (3) coordinated use of spectrum resources to better facilitate interoperability and interagency cooperation and interdiction efforts at or near the United States border. (b) Report to Congress Not later than 180 days after the conclusion of the pilot program conducted under subsection (a), the Commissioner of U.S. Customs and Border Protection shall submit to the Committee on Homeland Security and the Committee on Energy and Commerce of the House of Representatives and the Committee on Homeland Security and Governmental Affairs and the Committee on Commerce, Science, and Transportation of the Senate a report on the findings and data derived from such program. 1127. Homeland security foreign assistance (a) In general Subtitle C of title IV of the Homeland Security Act of 2002 ( 6 U.S.C. 231 et seq.), as amended by sections 1115 and 1124 of this division, is further amended by adding at the end the following new section: 437. Security assistance (a) In general The Secretary, with the concurrence of the Secretary of State, may provide to a foreign government, financial assistance and, with or without reimbursement, security assistance, including equipment, training, maintenance, supplies, and sustainment support. (b) Determination The Secretary may only provide financial assistance or security assistance pursuant to subsection (a) if the Secretary determines that such assistance would enhance the recipient government’s capacity to— (1) mitigate the risk or threat of transnational organized crime and terrorism; (2) address irregular migration flows that may affect the United States, including any detention or removal operations of the recipient government